Skip to content

Commit

Permalink
Fix asm Opcodes version
Browse files Browse the repository at this point in the history
  • Loading branch information
kincajou authored and gaul committed Nov 24, 2018
1 parent 56790ab commit e4340e1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ final class ModernizerClassVisitor extends ClassVisitor {
Collection<Pattern> exclusionPatterns,
Collection<String> ignorePackages,
Collection<Pattern> ignoreFullClassNamePatterns) {
super(Opcodes.ASM5);
super(Opcodes.ASM7);
Utils.checkArgument(javaVersion >= 0);
this.javaVersion = javaVersion;
this.violations = Utils.checkNotNull(violations);
Expand Down Expand Up @@ -172,9 +172,9 @@ public MethodVisitor visitMethod(int access, final String methodName,
String[] exceptions) {
MethodVisitor base = super.visitMethod(access, methodName,
methodDescriptor, methodSignature, exceptions);
MethodVisitor origVisitor = new MethodVisitor(Opcodes.ASM5, base) {
MethodVisitor origVisitor = new MethodVisitor(Opcodes.ASM7, base) {
};
InstructionAdapter adapter = new InstructionAdapter(Opcodes.ASM5,
InstructionAdapter adapter = new InstructionAdapter(Opcodes.ASM7,
origVisitor) {
private int lineNumber = -1;

Expand Down

0 comments on commit e4340e1

Please sign in to comment.