From 5cf0fd9357e322c2df48d6b489a56805eb623b74 Mon Sep 17 00:00:00 2001 From: Panxiaobo Date: Fri, 4 Nov 2011 13:21:16 +0800 Subject: [PATCH] --HG-- branch : 0.0.9.x --- .../dex2jar/v3/V3AccessFlagsAdapter.java | 24 ++++--------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/dex-translator/src/main/java/com/googlecode/dex2jar/v3/V3AccessFlagsAdapter.java b/dex-translator/src/main/java/com/googlecode/dex2jar/v3/V3AccessFlagsAdapter.java index 2be1eed4..81749c79 100644 --- a/dex-translator/src/main/java/com/googlecode/dex2jar/v3/V3AccessFlagsAdapter.java +++ b/dex-translator/src/main/java/com/googlecode/dex2jar/v3/V3AccessFlagsAdapter.java @@ -24,13 +24,11 @@ import java.util.TreeSet; import com.googlecode.dex2jar.Annotation; import com.googlecode.dex2jar.Annotation.Item; -import com.googlecode.dex2jar.Field; import com.googlecode.dex2jar.Method; import com.googlecode.dex2jar.visitors.DexAnnotationVisitor; import com.googlecode.dex2jar.visitors.DexClassVisitor; -import com.googlecode.dex2jar.visitors.DexFieldVisitor; import com.googlecode.dex2jar.visitors.DexFileVisitor; -import com.googlecode.dex2jar.visitors.DexMethodVisitor; +import com.googlecode.dex2jar.visitors.EmptyVisitor; /** * @author Panxiaobo [pxb1988@gmail.com] @@ -40,7 +38,7 @@ public class V3AccessFlagsAdapter implements DexFileVisitor { private Map map = new HashMap(); private Map innerNameMap = new HashMap(); - private Map> extraMember = new HashMap(); + private Map> extraMember = new HashMap>(); /** * @return the innerNameMap @@ -65,7 +63,7 @@ public class V3AccessFlagsAdapter implements DexFileVisitor { */ public DexClassVisitor visit(int access_flags, final String className, String superClass, String[] interfaceNames) { - return new DexClassVisitor() { + return new EmptyVisitor() { protected List anns = new ArrayList(); @Override @@ -75,20 +73,6 @@ public class V3AccessFlagsAdapter implements DexFileVisitor { return new V3AnnAdapter(ann); } - @Override - public void visitSource(String file) { - } - - @Override - public DexMethodVisitor visitMethod(int accessFlags, Method method) { - return null; - } - - @Override - public DexFieldVisitor visitField(int accessFlags, Field field, Object value) { - return null; - } - @Override public void visitEnd() { String enclosingClass = null; @@ -118,7 +102,7 @@ public class V3AccessFlagsAdapter implements DexFileVisitor { if (it.value == null) { Set set = extraMember.get(enclosingClass); if (set == null) { - set = new TreeSet(); + set = new TreeSet(); extraMember.put(enclosingClass, set); } set.add(className);