|
@@ -1,5 +1,5 @@
|
|
/*
|
|
/*
|
|
- * Copyright (c) 2009-2020 jMonkeyEngine
|
|
|
|
|
|
+ * Copyright (c) 2009-2021 jMonkeyEngine
|
|
* All rights reserved.
|
|
* All rights reserved.
|
|
*
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -62,7 +62,7 @@ public class DOMInputCapsule implements InputCapsule {
|
|
private Element currentElem;
|
|
private Element currentElem;
|
|
private XMLImporter importer;
|
|
private XMLImporter importer;
|
|
private boolean isAtRoot = true;
|
|
private boolean isAtRoot = true;
|
|
- private Map<String, Savable> referencedSavables = new HashMap<String, Savable>();
|
|
|
|
|
|
+ private Map<String, Savable> referencedSavables = new HashMap<>();
|
|
|
|
|
|
private int[] classHierarchyVersions;
|
|
private int[] classHierarchyVersions;
|
|
private Savable savable;
|
|
private Savable savable;
|
|
@@ -196,7 +196,7 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
|
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
NodeList nodes = currentElem.getChildNodes();
|
|
NodeList nodes = currentElem.getChildNodes();
|
|
- List<byte[]> byteArrays = new ArrayList<byte[]>();
|
|
|
|
|
|
+ List<byte[]> byteArrays = new ArrayList<>();
|
|
|
|
|
|
for (int i = 0; i < nodes.getLength(); i++) {
|
|
for (int i = 0; i < nodes.getLength(); i++) {
|
|
Node n = nodes.item(i);
|
|
Node n = nodes.item(i);
|
|
@@ -302,7 +302,7 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
|
|
|
|
|
|
|
NodeList nodes = currentElem.getChildNodes();
|
|
NodeList nodes = currentElem.getChildNodes();
|
|
- List<int[]> intArrays = new ArrayList<int[]>();
|
|
|
|
|
|
+ List<int[]> intArrays = new ArrayList<>();
|
|
|
|
|
|
for (int i = 0; i < nodes.getLength(); i++) {
|
|
for (int i = 0; i < nodes.getLength(); i++) {
|
|
Node n = nodes.item(i);
|
|
Node n = nodes.item(i);
|
|
@@ -493,7 +493,7 @@ public class DOMInputCapsule implements InputCapsule {
|
|
}
|
|
}
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
NodeList nodes = currentElem.getChildNodes();
|
|
NodeList nodes = currentElem.getChildNodes();
|
|
- List<double[]> doubleArrays = new ArrayList<double[]>();
|
|
|
|
|
|
+ List<double[]> doubleArrays = new ArrayList<>();
|
|
|
|
|
|
for (int i = 0; i < nodes.getLength(); i++) {
|
|
for (int i = 0; i < nodes.getLength(); i++) {
|
|
Node n = nodes.item(i);
|
|
Node n = nodes.item(i);
|
|
@@ -595,7 +595,7 @@ public class DOMInputCapsule implements InputCapsule {
|
|
}
|
|
}
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
NodeList nodes = currentElem.getChildNodes();
|
|
NodeList nodes = currentElem.getChildNodes();
|
|
- List<long[]> longArrays = new ArrayList<long[]>();
|
|
|
|
|
|
+ List<long[]> longArrays = new ArrayList<>();
|
|
|
|
|
|
for (int i = 0; i < nodes.getLength(); i++) {
|
|
for (int i = 0; i < nodes.getLength(); i++) {
|
|
Node n = nodes.item(i);
|
|
Node n = nodes.item(i);
|
|
@@ -698,7 +698,7 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
|
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
NodeList nodes = currentElem.getChildNodes();
|
|
NodeList nodes = currentElem.getChildNodes();
|
|
- List<short[]> shortArrays = new ArrayList<short[]>();
|
|
|
|
|
|
+ List<short[]> shortArrays = new ArrayList<>();
|
|
|
|
|
|
for (int i = 0; i < nodes.getLength(); i++) {
|
|
for (int i = 0; i < nodes.getLength(); i++) {
|
|
Node n = nodes.item(i);
|
|
Node n = nodes.item(i);
|
|
@@ -792,7 +792,7 @@ public class DOMInputCapsule implements InputCapsule {
|
|
}
|
|
}
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
NodeList nodes = currentElem.getChildNodes();
|
|
NodeList nodes = currentElem.getChildNodes();
|
|
- List<boolean[]> booleanArrays = new ArrayList<boolean[]>();
|
|
|
|
|
|
+ List<boolean[]> booleanArrays = new ArrayList<>();
|
|
|
|
|
|
for (int i = 0; i < nodes.getLength(); i++) {
|
|
for (int i = 0; i < nodes.getLength(); i++) {
|
|
Node n = nodes.item(i);
|
|
Node n = nodes.item(i);
|
|
@@ -851,7 +851,7 @@ public class DOMInputCapsule implements InputCapsule {
|
|
}
|
|
}
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
NodeList nodes = tmpEl.getChildNodes();
|
|
NodeList nodes = tmpEl.getChildNodes();
|
|
- List<String> strings = new ArrayList<String>();
|
|
|
|
|
|
+ List<String> strings = new ArrayList<>();
|
|
|
|
|
|
for (int i = 0; i < nodes.getLength(); i++) {
|
|
for (int i = 0; i < nodes.getLength(); i++) {
|
|
Node n = nodes.item(i);
|
|
Node n = nodes.item(i);
|
|
@@ -896,7 +896,7 @@ public class DOMInputCapsule implements InputCapsule {
|
|
}
|
|
}
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
NodeList nodes = currentElem.getChildNodes();
|
|
NodeList nodes = currentElem.getChildNodes();
|
|
- List<String[]> stringArrays = new ArrayList<String[]>();
|
|
|
|
|
|
+ List<String[]> stringArrays = new ArrayList<>();
|
|
|
|
|
|
for (int i = 0; i < nodes.getLength(); i++) {
|
|
for (int i = 0; i < nodes.getLength(); i++) {
|
|
Node n = nodes.item(i);
|
|
Node n = nodes.item(i);
|
|
@@ -1044,7 +1044,7 @@ public class DOMInputCapsule implements InputCapsule {
|
|
}
|
|
}
|
|
|
|
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
- List<Savable> savables = new ArrayList<Savable>();
|
|
|
|
|
|
+ List<Savable> savables = new ArrayList<>();
|
|
for (currentElem = findFirstChildElement(tmpEl);
|
|
for (currentElem = findFirstChildElement(tmpEl);
|
|
currentElem != null;
|
|
currentElem != null;
|
|
currentElem = findNextSiblingElement(currentElem)) {
|
|
currentElem = findNextSiblingElement(currentElem)) {
|
|
@@ -1114,7 +1114,7 @@ public class DOMInputCapsule implements InputCapsule {
|
|
}
|
|
}
|
|
|
|
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
- ArrayList<Savable> savables = new ArrayList<Savable>();
|
|
|
|
|
|
+ ArrayList<Savable> savables = new ArrayList<>();
|
|
for (currentElem = findFirstChildElement(tmpEl);
|
|
for (currentElem = findFirstChildElement(tmpEl);
|
|
currentElem != null;
|
|
currentElem != null;
|
|
currentElem = findNextSiblingElement(currentElem)) {
|
|
currentElem = findNextSiblingElement(currentElem)) {
|
|
@@ -1157,7 +1157,7 @@ public class DOMInputCapsule implements InputCapsule {
|
|
|
|
|
|
ArrayList<Savable> sal;
|
|
ArrayList<Savable> sal;
|
|
List<ArrayList<Savable>> savableArrayLists =
|
|
List<ArrayList<Savable>> savableArrayLists =
|
|
- new ArrayList<ArrayList<Savable>>();
|
|
|
|
|
|
+ new ArrayList<>();
|
|
int i = -1;
|
|
int i = -1;
|
|
while (true) {
|
|
while (true) {
|
|
sal = readSavableArrayList("SavableArrayList_" + ++i, null);
|
|
sal = readSavableArrayList("SavableArrayList_" + ++i, null);
|
|
@@ -1198,7 +1198,7 @@ public class DOMInputCapsule implements InputCapsule {
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
|
|
|
|
ArrayList<Savable>[] arr;
|
|
ArrayList<Savable>[] arr;
|
|
- List<ArrayList<Savable>[]> sall = new ArrayList<ArrayList<Savable>[]>();
|
|
|
|
|
|
+ List<ArrayList<Savable>[]> sall = new ArrayList<>();
|
|
int i = -1;
|
|
int i = -1;
|
|
while ((arr = readSavableArrayListArray(
|
|
while ((arr = readSavableArrayListArray(
|
|
"SavableArrayListArray_" + ++i, null)) != null) sall.add(arr);
|
|
"SavableArrayListArray_" + ++i, null)) != null) sall.add(arr);
|
|
@@ -1231,7 +1231,7 @@ public class DOMInputCapsule implements InputCapsule {
|
|
}
|
|
}
|
|
|
|
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
- ArrayList<FloatBuffer> tmp = new ArrayList<FloatBuffer>();
|
|
|
|
|
|
+ ArrayList<FloatBuffer> tmp = new ArrayList<>();
|
|
for (currentElem = findFirstChildElement(tmpEl);
|
|
for (currentElem = findFirstChildElement(tmpEl);
|
|
currentElem != null;
|
|
currentElem != null;
|
|
currentElem = findNextSiblingElement(currentElem)) {
|
|
currentElem = findNextSiblingElement(currentElem)) {
|
|
@@ -1501,7 +1501,7 @@ public class DOMInputCapsule implements InputCapsule {
|
|
}
|
|
}
|
|
|
|
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
String sizeString = tmpEl.getAttribute("size");
|
|
- ArrayList<ByteBuffer> tmp = new ArrayList<ByteBuffer>();
|
|
|
|
|
|
+ ArrayList<ByteBuffer> tmp = new ArrayList<>();
|
|
for (currentElem = findFirstChildElement(tmpEl);
|
|
for (currentElem = findFirstChildElement(tmpEl);
|
|
currentElem != null;
|
|
currentElem != null;
|
|
currentElem = findNextSiblingElement(currentElem)) {
|
|
currentElem = findNextSiblingElement(currentElem)) {
|