From 33cc22b0fc77deb9e63d377a09f7b22eb95777d3 Mon Sep 17 00:00:00 2001 From: chiba Date: Tue, 30 Mar 2010 07:32:37 +0000 Subject: [PATCH] reformatted git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@520 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- .../bytecode/annotation/MemberValue.java | 24 +++++++++---------- 1 file 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; } /** -- 2.39.5