Skip to content

Commit

Permalink
Use package renamed ASM to avoid conflict.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Mar 2, 2012
1 parent 3ff0cc3 commit b3f1bcb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
8 changes: 3 additions & 5 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,9 @@
<version>r06</version>
</dependency>
<dependency>
<!-- optionally read in parameter names from the debug info -->
<groupId>asm</groupId>
<artifactId>asm-commons</artifactId>
<version>2.2.3</version>
<optional>true</optional>
<groupId>org.kohsuke</groupId>
<artifactId>asm3</artifactId>
<version>3.3.0</version>
</dependency>
<dependency>
<!-- perhaps mark this dependency optional? -->
Expand Down
15 changes: 7 additions & 8 deletions core/src/main/java/org/kohsuke/stapler/ClassDescriptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@
package org.kohsuke.stapler;

import org.apache.commons.io.IOUtils;
import org.objectweb.asm.AnnotationVisitor;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.Label;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Type;
import org.objectweb.asm.commons.EmptyVisitor;
import org.kohsuke.asm3.ClassReader;
import org.kohsuke.asm3.Label;
import org.kohsuke.asm3.MethodVisitor;
import org.kohsuke.asm3.Type;
import org.kohsuke.asm3.commons.EmptyVisitor;

import java.io.IOException;
import java.io.InputStream;
Expand Down Expand Up @@ -185,7 +184,7 @@ private static String[] loadParametersFromAsm(final Method m) throws IOException
else
return null; // ignore this method
}
}, false);
}, 0);

// Indexes may not be sequential, but first set of local variables are method params
int i = 0;
Expand Down Expand Up @@ -221,7 +220,7 @@ public MethodVisitor visitMethod(int access, String methodName, String desc, Str
else
return null; // ignore this method
}
}, false);
}, 0);

// Indexes may not be sequential, but first set of local variables are method params
int i = 0;
Expand Down

0 comments on commit b3f1bcb

Please sign in to comment.