core: don't cache dex strings (old workaround for bug in dx)

This commit is contained in:
Skylot
2014-08-16 14:53:05 +04:00
parent 07937f1d71
commit 95afe1219e
@@ -31,16 +31,12 @@ public class DexNode {
private final RootNode root;
private final Dex dexBuf;
private final List<ClassNode> classes = new ArrayList<ClassNode>();
private final String[] strings;
private final Map<Object, FieldNode> constFields = new HashMap<Object, FieldNode>();
public DexNode(RootNode root, InputFile input) {
this.root = root;
this.dexBuf = input.getDexBuffer();
List<String> stringList = dexBuf.strings();
this.strings = stringList.toArray(new String[stringList.size()]);
}
public void loadClasses() throws DecodeException {
@@ -80,7 +76,7 @@ public class DexNode {
// DexBuffer wrappers
public String getString(int index) {
return strings[index];
return dexBuf.strings().get(index);
}
public ArgType getType(int index) {