Update API versions.

This commit is contained in:
md_5 2015-01-09 10:44:32 +11:00
parent 4f1914a495
commit c1b38b3e2e
3 changed files with 6 additions and 6 deletions

View File

@ -68,7 +68,7 @@ public class JarComparer extends ClassVisitor {
}
public JarComparer(Jar jar) {
super(Opcodes.ASM4);
super(Opcodes.ASM5);
this.jar = jar;
this.inheritance = new JarProvider(jar);
}
@ -162,7 +162,7 @@ public class JarComparer extends ClassVisitor {
private class MethodReferenceFinder extends MethodVisitor {
public MethodReferenceFinder() {
super(Opcodes.ASM4);
super(Opcodes.ASM5);
}
@Override

View File

@ -82,7 +82,7 @@ public class RemappingClassAdapter extends ClassVisitor {
protected String className;
public RemappingClassAdapter(final ClassVisitor cv, final CustomRemapper remapper, ClassRepo repo) {
this(Opcodes.ASM4, cv, remapper);
this(Opcodes.ASM5, cv, remapper);
this.repo = repo;
}
@ -145,7 +145,7 @@ public class RemappingClassAdapter extends ClassVisitor {
}
protected FieldVisitor createRemappingFieldAdapter(FieldVisitor sup) {
return new FieldVisitor(Opcodes.ASM4, sup) {
return new FieldVisitor(Opcodes.ASM5, sup) {
@Override
public void visitAttribute(Attribute attr) {
if (SpecialSource.kill_lvt && attr.type.equals("LocalVariableTable")) {
@ -163,7 +163,7 @@ public class RemappingClassAdapter extends ClassVisitor {
protected MethodVisitor createRemappingMethodAdapter(int access, String newDesc, MethodVisitor sup) {
MethodVisitor remap = new UnsortedRemappingMethodAdapter(access, newDesc, sup, remapper, repo);
return new MethodVisitor(Opcodes.ASM4, remap) {
return new MethodVisitor(Opcodes.ASM5, remap) {
@Override
public void visitAttribute(Attribute attr) {
if (SpecialSource.kill_lvt && attr.type.equals("LocalVariableTable")) {

View File

@ -57,7 +57,7 @@ public class UnsortedRemappingMethodAdapter extends MethodVisitor { //Lex: Chang
public UnsortedRemappingMethodAdapter(final int access, final String desc,
final MethodVisitor mv, final CustomRemapper remapper, ClassRepo classRepo) {
this(Opcodes.ASM4, access, desc, mv, remapper, classRepo);
this(Opcodes.ASM5, access, desc, mv, remapper, classRepo);
}
protected UnsortedRemappingMethodAdapter(final int api, final int access,