diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2010-05-17 09:18:20 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2010-05-17 09:18:20 +0000 |
commit | 68f10cc077ba94f2ae250334c72c4a9cee456b6c (patch) | |
tree | e70ccc3f1e604a9047a5fee7abb953ce255465a9 /src/main | |
parent | b8af5440324850f846b918d05faa256310803204 (diff) | |
download | javassist-68f10cc077ba94f2ae250334c72c4a9cee456b6c.tar.gz javassist-68f10cc077ba94f2ae250334c72c4a9cee456b6c.zip |
fixed JIRA JASSIST-117
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@546 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/javassist/bytecode/analysis/Type.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/javassist/bytecode/analysis/Type.java b/src/main/javassist/bytecode/analysis/Type.java index 38df93f7..234f050e 100644 --- a/src/main/javassist/bytecode/analysis/Type.java +++ b/src/main/javassist/bytecode/analysis/Type.java @@ -206,9 +206,9 @@ public class Type { if (!isArray()) return 0; String name = clazz.getName(); - int pos = name.length() - 2; + int pos = name.length() - 1; int count = 0; - while (name.charAt(pos) == '[' ) { + while (name.charAt(pos) == ']' ) { pos -= 2; count++; } |