Skip to content

Commit f4ac97d

Browse files
committed
Upgrade to ASM 9.6
Closes gh-399
1 parent 1c26723 commit f4ac97d

File tree

2 files changed

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

2 files changed

+8
-8
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<tycho.disableP2Mirrors>true</tycho.disableP2Mirrors>
3838
<ant.version>1.8.1</ant.version>
3939
<ant-contrib.version>1.0b3</ant-contrib.version>
40-
<asm.version>7.3.1</asm.version>
40+
<asm.version>9.6</asm.version>
4141
<assertj.version>3.8.0</assertj.version>
4242
<checkstyle.version>9.3</checkstyle.version>
4343
<groovy.version>2.4.21</groovy.version>

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2023 the original author or authors.
2+
* Copyright 2017-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -111,7 +111,7 @@ public static void main(String[] args) throws Exception {
111111
private static class DefaultCodeFormatterManipulator extends ClassVisitor {
112112

113113
DefaultCodeFormatterManipulator(ClassVisitor visitor) {
114-
super(Opcodes.ASM7, visitor);
114+
super(Opcodes.ASM9, visitor);
115115
}
116116

117117
@Override
@@ -140,7 +140,7 @@ public MethodVisitor visitMethod(int access, String name, String desc, String si
140140
private static class DefaultCodeFormatterMethodManipulator extends MethodVisitor {
141141

142142
DefaultCodeFormatterMethodManipulator(MethodVisitor mv) {
143-
super(Opcodes.ASM7, mv);
143+
super(Opcodes.ASM9, mv);
144144
}
145145

146146
@Override
@@ -160,7 +160,7 @@ public void visitMethodInsn(int opcode, String owner, String name, String desc,
160160
private static class NlsJdk8Manipulator extends ClassVisitor {
161161

162162
NlsJdk8Manipulator(ClassVisitor visitor) {
163-
super(Opcodes.ASM7, visitor);
163+
super(Opcodes.ASM9, visitor);
164164
}
165165

166166
@Override
@@ -182,7 +182,7 @@ private static class NslJdk8MethodManipulator extends MethodVisitor {
182182
private final MethodVisitor methodVisitor;
183183

184184
NslJdk8MethodManipulator(MethodVisitor mv) {
185-
super(Opcodes.ASM7, null);
185+
super(Opcodes.ASM9, null);
186186
this.methodVisitor = mv;
187187
}
188188

@@ -205,7 +205,7 @@ public void visitEnd() {
205205
private static class NlsJdk11Manipulator extends ClassVisitor {
206206

207207
NlsJdk11Manipulator(ClassVisitor visitor) {
208-
super(Opcodes.ASM7, visitor);
208+
super(Opcodes.ASM9, visitor);
209209
}
210210

211211
@Override
@@ -227,7 +227,7 @@ private static class NslJdk11MethodManipulator extends MethodVisitor {
227227
private final MethodVisitor methodVisitor;
228228

229229
NslJdk11MethodManipulator(MethodVisitor mv) {
230-
super(Opcodes.ASM7, null);
230+
super(Opcodes.ASM9, null);
231231
this.methodVisitor = mv;
232232
}
233233

0 commit comments

Comments
 (0)