Skip to content
This repository was archived by the owner on Jun 8, 2024. It is now read-only.

Commit 6c09b18

Browse files
committed
Update ASM
1 parent f35cb73 commit 6c09b18

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

build.gradle

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group 'net.fabricmc'
8-
version '0.4.0'
8+
version '0.4.1'
99

1010
def ENV = System.getenv()
1111
version = version + (ENV.GITHUB_ACTIONS ? "" : "+local")
@@ -22,11 +22,11 @@ dependencies {
2222
implementation 'net.fabricmc:javapoet:0.1.0'
2323
implementation 'net.fabricmc:mapping-io:0.4.0'
2424

25-
implementation 'org.ow2.asm:asm:9.2'
26-
implementation 'org.ow2.asm:asm-analysis:9.2'
27-
implementation 'org.ow2.asm:asm-commons:9.2'
28-
implementation 'org.ow2.asm:asm-tree:9.2'
29-
implementation 'org.ow2.asm:asm-util:9.2'
25+
implementation 'org.ow2.asm:asm:9.7'
26+
implementation 'org.ow2.asm:asm-analysis:9.7'
27+
implementation 'org.ow2.asm:asm-commons:9.7'
28+
implementation 'org.ow2.asm:asm-tree:9.7'
29+
implementation 'org.ow2.asm:asm-util:9.7'
3030

3131
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.1'
3232
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.1'

src/main/java/net/fabricmc/mappingpoet/Main.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO
194194

195195
try (InputStream is = jarFile.getInputStream(entry)) {
196196
ClassReader reader = new ClassReader(is);
197-
reader.accept(new ClassVisitor(Opcodes.ASM8) {
197+
reader.accept(new ClassVisitor(Opcodes.ASM9) {
198198
@Override
199199
public void visitInnerClass(String name, String outerName, String simpleName, int access) {
200200
instanceInnerClasses.put(name, new Environment.NestedClassInfo(outerName, !Modifier.isStatic(access), simpleName));

src/main/java/net/fabricmc/mappingpoet/signature/PoetClassMethodSignatureVisitor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public final class PoetClassMethodSignatureVisitor extends SignatureVisitor {
4646
TypeName returnType;
4747

4848
public PoetClassMethodSignatureVisitor(TypeAnnotationMapping mapping, ClassStaticContext context, boolean forClass) {
49-
super(Opcodes.ASM8);
49+
super(Opcodes.ASM9);
5050
this.mapping = mapping;
5151
this.context = context;
5252
this.forClass = forClass;

src/main/java/net/fabricmc/mappingpoet/signature/PoetTypeSignatureWriter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public final class PoetTypeSignatureWriter extends SignatureVisitor {
5454
private PoetTypeSignatureWriter activeTypeArgument;
5555

5656
public PoetTypeSignatureWriter(TypeAnnotationBank storage, ClassStaticContext context) {
57-
super(Opcodes.ASM8);
57+
super(Opcodes.ASM9);
5858
this.storage = storage;
5959
this.context = context;
6060
}

0 commit comments

Comments
 (0)