Jan Enders 8 роки тому
батько
коміт
0c75c5f15b

+ 6 - 2
scopviz/src/main/java/de/tu_darmstadt/informatik/tk/scopviz/io/GraphMLExporter.java

@@ -79,7 +79,9 @@ public class GraphMLExporter {
 		while (edges.hasNext()) {
 			Edge e = edges.next();
 			e.removeAttribute("ui.j2dsk");
-			for (String s : e.getEachAttributeKey()) {
+			String[] temp = new String[0];
+			temp = e.getAttributeKeySet().toArray(temp);
+			for (String s : temp) {
 				Class<? extends Object> c = e.getAttribute(s).getClass();
 				if (!c.isPrimitive() && !(c == String.class) && !(c == Character.class) && !(c == Boolean.class)
 						&& !(c == Integer.class) && !(c == Long.class) && !(c == Short.class) && !(c == Byte.class)
@@ -97,7 +99,9 @@ public class GraphMLExporter {
 			n.removeAttribute("ui.j2dsk");
 			n.removeAttribute("ui.class");
 			n.removeAttribute("ui.pie-values");
-			for (String s : n.getEachAttributeKey()) {
+			String[] temp = new String[0];
+			temp = n.getAttributeKeySet().toArray(temp);
+			for (String s : temp) {
 				Class<? extends Object> c = n.getAttribute(s).getClass();
 				if (!c.isPrimitive() && !(c == String.class) && !(c == Character.class) && !(c == Boolean.class)
 						&& !(c == Integer.class) && !(c == Long.class) && !(c == Short.class) && !(c == Byte.class)