Skip to content

Commit

Permalink
Fixed old ASM constant version
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schnell committed Jan 20, 2024
1 parent e933a6f commit ec33dca
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>9.5</version>
<!-- Don't forget to change Opcodes.ASMx constants! -->
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
public class EmptyAnnotationVisitor extends AnnotationVisitor {

public EmptyAnnotationVisitor() {
super(Opcodes.ASM7);
super(Opcodes.ASM9);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class EmptyClassVisitor extends ClassVisitor {
private EmptyFieldVisitor fi;

public EmptyClassVisitor() {
super(Opcodes.ASM7);
super(Opcodes.ASM9);
an = new EmptyAnnotationVisitor();
me = new EmptyMethodVisitor();
fi = new EmptyFieldVisitor();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class EmptyFieldVisitor extends FieldVisitor {
private EmptyAnnotationVisitor an;

public EmptyFieldVisitor() {
super(Opcodes.ASM7);
super(Opcodes.ASM9);
an = new EmptyAnnotationVisitor();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class EmptyMethodVisitor extends MethodVisitor {
private EmptyAnnotationVisitor an;

public EmptyMethodVisitor() {
super(Opcodes.ASM7);
super(Opcodes.ASM9);
an = new EmptyAnnotationVisitor();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public final class MCAClassVisitor extends ClassVisitor {
* Method calls to find.
*/
public MCAClassVisitor(final List<MCAMethod> methodsToFind) {
super(Opcodes.ASM7, new EmptyClassVisitor());
super(Opcodes.ASM9, new EmptyClassVisitor());
if (methodsToFind == null) {
throw new IllegalArgumentException("Argument 'methodsToFind' canot be NULL");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public final class MCAMethodVisitor extends MethodVisitor {
* List of methods to find.
*/
public MCAMethodVisitor(final MCAClassVisitor classVisitor, final List<MCAMethod> toFind) {
super(Opcodes.ASM7, new EmptyMethodVisitor());
super(Opcodes.ASM9, new EmptyMethodVisitor());
if (classVisitor == null) {
throw new IllegalArgumentException("Argument 'classVisitor' canot be NULL");
}
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/org/fuin/units4j/dependency/DependencyVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class DependencyVisitor extends ClassVisitor {
private Map<String, Integer> current;

public DependencyVisitor() {
super(Opcodes.ASM7);
super(Opcodes.ASM9);
mv = new MVisitor();
av = new AVisitor();
sv = new SVisitor();
Expand Down Expand Up @@ -214,7 +214,7 @@ private void addTypeSignature(final String signature) {
private class MVisitor extends MethodVisitor {

public MVisitor() {
super(Opcodes.ASM7);
super(Opcodes.ASM9);
}

@Override
Expand Down Expand Up @@ -273,7 +273,7 @@ public void visitTryCatchBlock(final Label start, final Label end, final Label h
private class AVisitor extends AnnotationVisitor {

public AVisitor() {
super(Opcodes.ASM7);
super(Opcodes.ASM9);
}

@Override
Expand Down Expand Up @@ -306,7 +306,7 @@ public class SVisitor extends SignatureVisitor {
private String signatureClassName;

public SVisitor() {
super(Opcodes.ASM7);
super(Opcodes.ASM9);
}

@Override
Expand Down Expand Up @@ -371,7 +371,7 @@ public SignatureVisitor visitTypeArgument(final char wildcard) {
private class FVisitor extends FieldVisitor {

public FVisitor() {
super(Opcodes.ASM7);
super(Opcodes.ASM9);
}

@Override
Expand Down

0 comments on commit ec33dca

Please sign in to comment.