ignore method annotation value and null annotation value

--HG--
branch : 0.0.9.x
This commit is contained in:
Panxiaobo 2013-06-17 13:49:39 +08:00
parent 5e539960fa
commit c3795eb9f8

View File

@ -77,11 +77,16 @@ public class AnnotationNode implements DexAnnotationVisitor {
// av1.visit("name", method.getName()); // av1.visit("name", method.getName());
// av1.visit("desc", method.getType().getDesc()); // av1.visit("desc", method.getType().getDesc());
// av1.visitEnd(); // av1.visitEnd();
av.visit(name, v); // av.visit(name, v);
System.err.println("WARN: ignored method annotation value");
} else if (v instanceof DexType) { } else if (v instanceof DexType) {
av.visit(name, ((DexType) v).desc); av.visit(name, ((DexType) v).desc);
} else { } else {
av.visit(name, v); if (v == null) {
System.err.println("WARN: ignored null annotation value");
} else {
av.visit(name, v);
}
} }
} }