mirror of
https://github.com/SuspiciousActivity/ByteEdit.git
synced 2026-08-13 17:56:17 +00:00
Annotations fix
This commit is contained in:
1 parent
46c0596768
commit
cfa278cd3b
2 files changed
+10
-3
No files matched your search
@@ -4,6 +4,7 @@ import java.io.BufferedReader;
|
|||||||
import java.io.StringReader;
|
import java.io.StringReader;
|
||||||
import java.math.BigInteger;
|
import java.math.BigInteger;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -573,7 +574,9 @@ public class Assembler {
|
|||||||
String value = split2[1];
|
String value = split2[1];
|
||||||
if (value.endsWith("]"))
|
if (value.endsWith("]"))
|
||||||
value = value.substring(0, value.length() - 1);
|
value = value.substring(0, value.length() - 1);
|
||||||
if (value.startsWith("{ ")) {
|
if (value.equals("{ }")) {
|
||||||
|
node.values.add(Collections.EMPTY_LIST);
|
||||||
|
} else if (value.startsWith("{ ")) {
|
||||||
String split3[] = splitWithStrings(value.substring(2, value.length() - 2));
|
String split3[] = splitWithStrings(value.substring(2, value.length() - 2));
|
||||||
List<Object> list = new ArrayList<>();
|
List<Object> list = new ArrayList<>();
|
||||||
for (String rofl : split3) {
|
for (String rofl : split3) {
|
||||||
|
|||||||
@@ -202,8 +202,12 @@ public class Disassembler implements IDecompiler {
|
|||||||
}
|
}
|
||||||
s += ", ";
|
s += ", ";
|
||||||
}
|
}
|
||||||
s = s.substring(0, s.length() - 2);
|
if (s.endsWith(", ")) {
|
||||||
s += " }], ";
|
s = s.substring(0, s.length() - 2);
|
||||||
|
s += " }], ";
|
||||||
|
} else {
|
||||||
|
s += "}], ";
|
||||||
|
}
|
||||||
} else if (o instanceof String) {
|
} else if (o instanceof String) {
|
||||||
s += "\"" + UnicodeUtils.escapeWithSpaces(hs, (String) o) + "\"], ";
|
s += "\"" + UnicodeUtils.escapeWithSpaces(hs, (String) o) + "\"], ";
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user