]> source.dussan.org Git - javassist.git/commitdiff
reformatted
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Tue, 30 Mar 2010 07:32:37 +0000 (07:32 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Tue, 30 Mar 2010 07:32:37 +0000 (07:32 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@520 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

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

index 3122eda897c7fac9d6fcffe62a8505ee568cb9fb..18796ee0a957f16d59d076efa5ad385ee1fc72e2 100644 (file)
@@ -61,19 +61,17 @@ 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('/', '.');
-       }
-       return 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('/', '.');
+        }
+        return classname;
     }
 
     /**