Skip to content

Commit 6e8ef1b

Browse files
committed
Upgrade to ASM7
Closes gh-299
1 parent 4f53faf commit 6e8ef1b

File tree

2 files changed

+9
-9
lines changed
  • spring-javaformat/spring-javaformat-formatter-eclipse-rewriter/src/main/java/io/spring/javaformat/formatter/eclipse/rewrite

2 files changed

+9
-9
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<tycho.disableP2Mirrors>true</tycho.disableP2Mirrors>
3737
<ant.version>1.8.1</ant.version>
3838
<ant-contrib.version>1.0b3</ant-contrib.version>
39-
<asm.version>5.2</asm.version>
39+
<asm.version>7.3.1</asm.version>
4040
<assertj.version>3.8.0</assertj.version>
4141
<checkstyle.version>8.45.1</checkstyle.version>
4242
<gradle.version>3.4</gradle.version>

spring-javaformat/spring-javaformat-formatter-eclipse-rewriter/src/main/java/io/spring/javaformat/formatter/eclipse/rewrite/EclipseRewriter.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public static void main(String[] args) throws Exception {
100100
private static class DefaultCodeFormatterManipulator extends ClassVisitor {
101101

102102
DefaultCodeFormatterManipulator(ClassVisitor visitor) {
103-
super(Opcodes.ASM5, visitor);
103+
super(Opcodes.ASM7, visitor);
104104
}
105105

106106
@Override
@@ -129,7 +129,7 @@ public MethodVisitor visitMethod(int access, String name, String desc, String si
129129
private static class DefaultCodeFormatterMethodManipulator extends MethodVisitor {
130130

131131
DefaultCodeFormatterMethodManipulator(MethodVisitor mv) {
132-
super(Opcodes.ASM5, mv);
132+
super(Opcodes.ASM7, mv);
133133
}
134134

135135
@Override
@@ -143,13 +143,13 @@ public void visitMethodInsn(int opcode, String owner, String name, String desc,
143143
}
144144

145145
/**
146-
* {@link ClassVisitor} to update the {@code NLS} class so it doesn't use a System
147-
* property to disable warning messages.
146+
* {@link ClassVisitor} to update the {@code NLS} class so it doesn't use a
147+
* System property to disable warning messages.
148148
*/
149149
private static class NlsManipulator extends ClassVisitor {
150150

151151
NlsManipulator(ClassVisitor visitor) {
152-
super(Opcodes.ASM5, visitor);
152+
super(Opcodes.ASM7, visitor);
153153
}
154154

155155
@Override
@@ -163,15 +163,15 @@ public MethodVisitor visitMethod(int access, String name, String desc, String si
163163
}
164164

165165
/**
166-
* {@link MethodVisitor} to update the {@code NLS} class so it doesn't use a System
167-
* property to disable warning messages.
166+
* {@link MethodVisitor} to update the {@code NLS} class so it doesn't use a
167+
* System property to disable warning messages.
168168
*/
169169
private static class NslMethodManipulator extends MethodVisitor {
170170

171171
private final MethodVisitor methodVisitor;
172172

173173
NslMethodManipulator(MethodVisitor mv) {
174-
super(Opcodes.ASM5, null);
174+
super(Opcodes.ASM7, null);
175175
this.methodVisitor = mv;
176176
}
177177

0 commit comments

Comments
 (0)