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

Commit

Permalink
Update ASM
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Mar 27, 2024
1 parent f35cb73 commit 6c09b18
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group 'net.fabricmc'
version '0.4.0'
version '0.4.1'

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

implementation 'org.ow2.asm:asm:9.2'
implementation 'org.ow2.asm:asm-analysis:9.2'
implementation 'org.ow2.asm:asm-commons:9.2'
implementation 'org.ow2.asm:asm-tree:9.2'
implementation 'org.ow2.asm:asm-util:9.2'
implementation 'org.ow2.asm:asm:9.7'
implementation 'org.ow2.asm:asm-analysis:9.7'
implementation 'org.ow2.asm:asm-commons:9.7'
implementation 'org.ow2.asm:asm-tree:9.7'
implementation 'org.ow2.asm:asm-util:9.7'

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.1'
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/fabricmc/mappingpoet/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO

try (InputStream is = jarFile.getInputStream(entry)) {
ClassReader reader = new ClassReader(is);
reader.accept(new ClassVisitor(Opcodes.ASM8) {
reader.accept(new ClassVisitor(Opcodes.ASM9) {
@Override
public void visitInnerClass(String name, String outerName, String simpleName, int access) {
instanceInnerClasses.put(name, new Environment.NestedClassInfo(outerName, !Modifier.isStatic(access), simpleName));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public final class PoetClassMethodSignatureVisitor extends SignatureVisitor {
TypeName returnType;

public PoetClassMethodSignatureVisitor(TypeAnnotationMapping mapping, ClassStaticContext context, boolean forClass) {
super(Opcodes.ASM8);
super(Opcodes.ASM9);
this.mapping = mapping;
this.context = context;
this.forClass = forClass;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public final class PoetTypeSignatureWriter extends SignatureVisitor {
private PoetTypeSignatureWriter activeTypeArgument;

public PoetTypeSignatureWriter(TypeAnnotationBank storage, ClassStaticContext context) {
super(Opcodes.ASM8);
super(Opcodes.ASM9);
this.storage = storage;
this.context = context;
}
Expand Down

0 comments on commit 6c09b18

Please sign in to comment.