aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-03-30 07:32:37 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-03-30 07:32:37 +0000
commit33cc22b0fc77deb9e63d377a09f7b22eb95777d3 (patch)
treeea587d0314cfdfe5793d798aeec90472544c974d
parent54e8b2adfb7fb72e83de3ab2c78fce93b3ed2a4f (diff)
downloadjavassist-33cc22b0fc77deb9e63d377a09f7b22eb95777d3.tar.gz
javassist-33cc22b0fc77deb9e63d377a09f7b22eb95777d3.zip
reformatted
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@520 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-rw-r--r--src/main/javassist/bytecode/annotation/MemberValue.java24
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;
}
/**