aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorkabir.khan@jboss.com <kabir.khan@jboss.com@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-03-29 14:03:15 +0000
committerkabir.khan@jboss.com <kabir.khan@jboss.com@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-03-29 14:03:15 +0000
commit54e8b2adfb7fb72e83de3ab2c78fce93b3ed2a4f (patch)
tree9d14e32b9fa6facbe1b5460ac834c9d99931460a /src
parentb4988a237d1de458b8d856f62543d8af685db1e4 (diff)
downloadjavassist-54e8b2adfb7fb72e83de3ab2c78fce93b3ed2a4f.tar.gz
javassist-54e8b2adfb7fb72e83de3ab2c78fce93b3ed2a4f.zip
[JASSIST-111] Uncomment the code containing the fix :-)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@519 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src')
-rw-r--r--src/main/javassist/bytecode/annotation/MemberValue.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/main/javassist/bytecode/annotation/MemberValue.java b/src/main/javassist/bytecode/annotation/MemberValue.java
index 5ce70cb7..3122eda8 100644
--- a/src/main/javassist/bytecode/annotation/MemberValue.java
+++ b/src/main/javassist/bytecode/annotation/MemberValue.java
@@ -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;
}