]> source.dussan.org Git - javassist.git/commitdiff
[JASSIST-111] Uncomment the code containing the fix :-)
authorkabir.khan@jboss.com <kabir.khan@jboss.com@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Mon, 29 Mar 2010 14:03:15 +0000 (14:03 +0000)
committerkabir.khan@jboss.com <kabir.khan@jboss.com@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Mon, 29 Mar 2010 14:03:15 +0000 (14:03 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@519 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

pom.xml
src/main/javassist/bytecode/annotation/MemberValue.java

diff --git a/pom.xml b/pom.xml
index fa20c84ab2b92f9f350e3f68762c443e0f57b154..7458034ea2fa4c907adbec4b50f243cdd3d32f43 100644 (file)
--- a/pom.xml
+++ b/pom.xml
           </archive>
         </configuration>
       </plugin>
+      <plugin>
+        <artifactId>maven-source-plugin</artifactId>
+        <version>2.0.3</version>
+        <executions>
+          <execution>
+            <id>attach-sources</id>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+          </execution>
+        </executions>
+        <inherited>true</inherited>
+      </plugin>
     </plugins>
   </build>
   <profiles>
index 5ce70cb74dd3e3ddb982ed237fdf706eee995c16..3122eda897c7fac9d6fcffe62a8505ee568cb9fb 100644 (file)
@@ -61,18 +61,18 @@ public abstract class MemberValue {
     
     private static String convertFromArray(String classname)
     {
-//       int index = classname.indexOf("[]"); 
-//       if (index != -1)
-//       {
-//          String rawType = classname.substring(0, index);
-//          StringBuffer sb = new StringBuffer(Descriptor.of(rawType));
-//          while (index != -1)
-//          {
-//             sb.insert(0, "[");
-//             index = classname.indexOf("[]", index + 1);
-//          }
-//          return sb.toString().replace('/', '.');
-//       }
+       int index = classname.indexOf("[]"); 
+       if (index != -1)
+       {
+          String rawType = classname.substring(0, index);
+          StringBuffer sb = new StringBuffer(Descriptor.of(rawType));
+          while (index != -1)
+          {
+             sb.insert(0, "[");
+             index = classname.indexOf("[]", index + 1);
+          }
+          return sb.toString().replace('/', '.');
+       }
        return classname;
     }