aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-05-17 09:18:20 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2010-05-17 09:18:20 +0000
commit68f10cc077ba94f2ae250334c72c4a9cee456b6c (patch)
treee70ccc3f1e604a9047a5fee7abb953ce255465a9 /src/main
parentb8af5440324850f846b918d05faa256310803204 (diff)
downloadjavassist-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.java4
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++;
}