summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2021-03-12 11:20:50 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2021-03-12 13:18:02 +0100
commit76bb4b4dec50d740c75a1fda415c975307d22eb0 (patch)
treef081c581f760a02d40c09ba93b007777a5ad601d /dev-java/xpp2/files
parentdev-java/jformatstring: eapi7, min jdk/jre 1.8 (diff)
downloadgentoo-76bb4b4dec50d740c75a1fda415c975307d22eb0.tar.gz
gentoo-76bb4b4dec50d740c75a1fda415c975307d22eb0.tar.bz2
gentoo-76bb4b4dec50d740c75a1fda415c975307d22eb0.zip
dev-java/xpp2: eapi7, min jdk/jre 1.8
Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/xpp2/files')
-rw-r--r--dev-java/xpp2/files/xpp2-2.1.10-fix-java5+.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/dev-java/xpp2/files/xpp2-2.1.10-fix-java5+.patch b/dev-java/xpp2/files/xpp2-2.1.10-fix-java5+.patch
new file mode 100644
index 000000000000..883bf5fa2d9a
--- /dev/null
+++ b/dev-java/xpp2/files/xpp2-2.1.10-fix-java5+.patch
@@ -0,0 +1,17 @@
+diff --git a/src/java/impl/node/org/gjt/xpp/impl/node/Node.java b/src/java/impl/node/org/gjt/xpp/impl/node/Node.java
+index 7c66608..6c128e9 100644
+--- a/src/java/impl/node/org/gjt/xpp/impl/node/Node.java
++++ b/src/java/impl/node/org/gjt/xpp/impl/node/Node.java
+@@ -273,9 +273,9 @@ public class Node extends StartTag implements XmlNode {
+ oneChild = null;
+
+ if(children != null && children.size() > 0) {
+- Enumeration enum = children.elements();
+- while (enum.hasMoreElements()) {
+- Object child = enum.nextElement();
++ Enumeration elements = children.elements();
++ while (elements.hasMoreElements()) {
++ Object child = elements.nextElement();
+ if(child instanceof XmlNode) {
+ ((XmlNode)child).setParentNode(null);
+ }