diff --git a/jode/jode/obfuscator/FieldIdentifier.java b/jode/jode/obfuscator/FieldIdentifier.java index 632503d..6ec7fbb 100644 --- a/jode/jode/obfuscator/FieldIdentifier.java +++ b/jode/jode/obfuscator/FieldIdentifier.java @@ -20,6 +20,7 @@ package jode.obfuscator; import java.lang.reflect.Modifier; import jode.bytecode.*; import java.io.*; +import java.util.Hashtable; public class FieldIdentifier extends Identifier{ FieldInfo info; @@ -73,6 +74,19 @@ public class FieldIdentifier extends Identifier{ return "MethodIdentifier "+getFullName()+"."+getType(); } + public void readTable(Hashtable table) { + String alias = (String) table.get(getFullName() + "." + getType()); + if (alias == null) + alias = (String) table.get(getFullName()); + if (alias != null) + setAlias(alias); + } + + public void writeTable(Hashtable table) { + table.put(getFullAlias() + + "." + clazz.bundle.getTypeAlias(getType()), getName()); + } + public boolean conflicting(String newAlias, boolean strong) { if (strong) { return clazz.containFieldAlias(newAlias, getType());