diff --git a/dex-translator/src/main/java/org/objectweb/asm/AsmBridge.java b/dex-translator/src/main/java/org/objectweb/asm/AsmBridge.java index 39f6941fe..6030b7717 100644 --- a/dex-translator/src/main/java/org/objectweb/asm/AsmBridge.java +++ b/dex-translator/src/main/java/org/objectweb/asm/AsmBridge.java @@ -19,7 +19,7 @@ import java.lang.reflect.Field; import org.objectweb.asm.tree.MethodNode; -public class AsmBridge { +public final class AsmBridge { public static MethodVisitor searchMethodWriter(MethodVisitor methodVisitor) { while (methodVisitor != null && !(methodVisitor instanceof MethodWriter)) { @@ -36,7 +36,8 @@ public static int sizeOfMethodWriter(MethodVisitor methodVisitor) { private static void removeMethodWriter(MethodWriter methodWriter) { SymbolTable symbolTable; ClassWriter classWriter; - MethodWriter firstMethodWriter, lastMethodWriter; + MethodWriter firstMethodWriter; + MethodWriter lastMethodWriter; // Get the SymbolTable for accessing ClassWriter try { @@ -100,4 +101,8 @@ public static void replaceMethodWriter(MethodVisitor methodVisitor, MethodNode m } } + private AsmBridge() { + throw new UnsupportedOperationException(); + } + }