mirror of https://github.com/FabricMC/yarn.git
Update ASM
This commit is contained in:
parent
40a0d19ade
commit
8b0f70e572
|
@ -194,7 +194,7 @@ public class Main {
|
||||||
|
|
||||||
try (InputStream is = jarFile.getInputStream(entry)) {
|
try (InputStream is = jarFile.getInputStream(entry)) {
|
||||||
ClassReader reader = new ClassReader(is);
|
ClassReader reader = new ClassReader(is);
|
||||||
reader.accept(new ClassVisitor(Opcodes.ASM8) {
|
reader.accept(new ClassVisitor(Opcodes.ASM9) {
|
||||||
@Override
|
@Override
|
||||||
public void visitInnerClass(String name, String outerName, String simpleName, int access) {
|
public void visitInnerClass(String name, String outerName, String simpleName, int access) {
|
||||||
instanceInnerClasses.put(name, new Environment.NestedClassInfo(outerName, !Modifier.isStatic(access), simpleName));
|
instanceInnerClasses.put(name, new Environment.NestedClassInfo(outerName, !Modifier.isStatic(access), simpleName));
|
||||||
|
|
|
@ -46,7 +46,7 @@ public final class PoetClassMethodSignatureVisitor extends SignatureVisitor {
|
||||||
TypeName returnType;
|
TypeName returnType;
|
||||||
|
|
||||||
public PoetClassMethodSignatureVisitor(TypeAnnotationMapping mapping, ClassStaticContext context, boolean forClass) {
|
public PoetClassMethodSignatureVisitor(TypeAnnotationMapping mapping, ClassStaticContext context, boolean forClass) {
|
||||||
super(Opcodes.ASM8);
|
super(Opcodes.ASM9);
|
||||||
this.mapping = mapping;
|
this.mapping = mapping;
|
||||||
this.context = context;
|
this.context = context;
|
||||||
this.forClass = forClass;
|
this.forClass = forClass;
|
||||||
|
|
|
@ -54,7 +54,7 @@ public final class PoetTypeSignatureWriter extends SignatureVisitor {
|
||||||
private PoetTypeSignatureWriter activeTypeArgument;
|
private PoetTypeSignatureWriter activeTypeArgument;
|
||||||
|
|
||||||
public PoetTypeSignatureWriter(TypeAnnotationBank storage, ClassStaticContext context) {
|
public PoetTypeSignatureWriter(TypeAnnotationBank storage, ClassStaticContext context) {
|
||||||
super(Opcodes.ASM8);
|
super(Opcodes.ASM9);
|
||||||
this.storage = storage;
|
this.storage = storage;
|
||||||
this.context = context;
|
this.context = context;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue