diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2010-03-30 07:32:37 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2010-03-30 07:32:37 +0000 |
commit | 33cc22b0fc77deb9e63d377a09f7b22eb95777d3 (patch) | |
tree | ea587d0314cfdfe5793d798aeec90472544c974d /src | |
parent | 54e8b2adfb7fb72e83de3ab2c78fce93b3ed2a4f (diff) | |
download | javassist-33cc22b0fc77deb9e63d377a09f7b22eb95777d3.tar.gz javassist-33cc22b0fc77deb9e63d377a09f7b22eb95777d3.zip |
reformatted
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@520 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src')
-rw-r--r-- | src/main/javassist/bytecode/annotation/MemberValue.java | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/main/javassist/bytecode/annotation/MemberValue.java b/src/main/javassist/bytecode/annotation/MemberValue.java index 3122eda8..18796ee0 100644 --- a/src/main/javassist/bytecode/annotation/MemberValue.java +++ b/src/main/javassist/bytecode/annotation/MemberValue.java @@ -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; } /** |