OSDN Git Service

upgrade version of required library ASM (2.2.3 -> 3.1)
authortama3 <tama3@acee48c3-7b26-0410-bdac-b3d0e5314bbc>
Wed, 10 Dec 2008 07:45:59 +0000 (07:45 +0000)
committertama3 <tama3@acee48c3-7b26-0410-bdac-b3d0e5314bbc>
Wed, 10 Dec 2008 07:45:59 +0000 (07:45 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/stigmata/plugins/trunk@359 acee48c3-7b26-0410-bdac-b3d0e5314bbc

wsp/pom.xml
wsp/src/main/java/jp/sourceforge/stigmata/birthmarks/wsp/OpcodeWeightCalculatePreprocessor.java

index be5a638..a4335e7 100644 (file)
@@ -1,4 +1,6 @@
-<?xml version="1.0"?><project>
+<?xml version="1.0"?>
+
+<project>
   <parent>
     <artifactId>plugins</artifactId>
     <groupId>jp.sourceforge.stigmata</groupId>
     <dependency>
       <groupId>jp.sourceforge</groupId>
       <artifactId>stigmata</artifactId>
-      <version>2.0.0-SNAPSHOT</version>
+      <version>2.0.0</version>
       <scope>provided</scope>
     </dependency>
     <dependency>
       <groupId>asm</groupId>
       <artifactId>asm-all</artifactId>
-      <version>2.2.3</version>
+      <version>3.1</version>
       <scope>compile</scope>
     </dependency>
   </dependencies>
index 1fe5f92..e8de6e6 100644 (file)
@@ -67,7 +67,7 @@ public class OpcodeWeightCalculatePreprocessor extends AbstractBirthmarkPreproce
                 InputStream in = entry.getLocation().openStream();
 
                 ClassReader reader = new ClassReader(in);
-                ClassWriter writer = new ClassWriter(false);
+                ClassWriter writer = new ClassWriter(0);
                 ClassAdapter opcodeExtractVisitor = new ClassAdapter(writer){
                     @Override
                     public MethodVisitor visitMethod(int arg0, String arg1, String arg2, String arg3, String[] arg4){
@@ -76,7 +76,7 @@ public class OpcodeWeightCalculatePreprocessor extends AbstractBirthmarkPreproce
                         return visitor;
                     }
                 };
-                reader.accept(opcodeExtractVisitor, false);
+                reader.accept(opcodeExtractVisitor, 0);
 
                 Set<Integer> set = new HashSet<Integer>();
                 for(Opcode opcode: opcodes){