Skip to content

Commit

Permalink
Upgrade to ASM7
Browse files Browse the repository at this point in the history
Closes gh-299
  • Loading branch information
philwebb committed Oct 6, 2021
1 parent 4f53faf commit 6e8ef1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<tycho.disableP2Mirrors>true</tycho.disableP2Mirrors>
<ant.version>1.8.1</ant.version>
<ant-contrib.version>1.0b3</ant-contrib.version>
<asm.version>5.2</asm.version>
<asm.version>7.3.1</asm.version>
<assertj.version>3.8.0</assertj.version>
<checkstyle.version>8.45.1</checkstyle.version>
<gradle.version>3.4</gradle.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static void main(String[] args) throws Exception {
private static class DefaultCodeFormatterManipulator extends ClassVisitor {

DefaultCodeFormatterManipulator(ClassVisitor visitor) {
super(Opcodes.ASM5, visitor);
super(Opcodes.ASM7, visitor);
}

@Override
Expand Down Expand Up @@ -129,7 +129,7 @@ public MethodVisitor visitMethod(int access, String name, String desc, String si
private static class DefaultCodeFormatterMethodManipulator extends MethodVisitor {

DefaultCodeFormatterMethodManipulator(MethodVisitor mv) {
super(Opcodes.ASM5, mv);
super(Opcodes.ASM7, mv);
}

@Override
Expand All @@ -143,13 +143,13 @@ public void visitMethodInsn(int opcode, String owner, String name, String desc,
}

/**
* {@link ClassVisitor} to update the {@code NLS} class so it doesn't use a System
* property to disable warning messages.
* {@link ClassVisitor} to update the {@code NLS} class so it doesn't use a
* System property to disable warning messages.
*/
private static class NlsManipulator extends ClassVisitor {

NlsManipulator(ClassVisitor visitor) {
super(Opcodes.ASM5, visitor);
super(Opcodes.ASM7, visitor);
}

@Override
Expand All @@ -163,15 +163,15 @@ public MethodVisitor visitMethod(int access, String name, String desc, String si
}

/**
* {@link MethodVisitor} to update the {@code NLS} class so it doesn't use a System
* property to disable warning messages.
* {@link MethodVisitor} to update the {@code NLS} class so it doesn't use a
* System property to disable warning messages.
*/
private static class NslMethodManipulator extends MethodVisitor {

private final MethodVisitor methodVisitor;

NslMethodManipulator(MethodVisitor mv) {
super(Opcodes.ASM5, null);
super(Opcodes.ASM7, null);
this.methodVisitor = mv;
}

Expand Down

0 comments on commit 6e8ef1b

Please sign in to comment.