[java-decompiler] cleanup (arrays to data classes; formatting; typos; dead code)
This commit is contained in:
@@ -120,25 +120,6 @@ public class InterpreterUtil {
|
||||
return first == null ? second == null : first.equals(second);
|
||||
}
|
||||
|
||||
public static boolean equalObjectArrays(Object[] first, Object[] second) {
|
||||
if (first == null || second == null) {
|
||||
return equalObjects(first, second);
|
||||
}
|
||||
else {
|
||||
if (first.length != second.length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (int i = 0; i < first.length; i++) {
|
||||
if (!equalObjects(first[i], second[i])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public static boolean equalLists(List<?> first, List<?> second) {
|
||||
if (first == null) {
|
||||
return second == null;
|
||||
@@ -172,6 +153,10 @@ public class InterpreterUtil {
|
||||
}
|
||||
|
||||
public static String makeUniqueKey(String name, String descriptor) {
|
||||
return name + " " + descriptor;
|
||||
return name + ' ' + descriptor;
|
||||
}
|
||||
|
||||
public static String makeUniqueKey(String name, String descriptor1, String descriptor2) {
|
||||
return name + ' ' + descriptor1 + ' ' + descriptor2;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user