Added array dimensions to the toString() output

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2349 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2003-10-30 18:38:12 +00:00
parent 3ab9045d2a
commit 0825111230

View File

@ -41,7 +41,13 @@ public class ASTType extends SimpleNode {
public void dump(String prefix) {
String out = toString(prefix) + ":";
if (isArray()) {out += "(array)";}
if (isArray()) {
out += "(array";
for (int i=0;i<getDimensions();i++) {
out += "[";
}
out += ")";
}
System.out.println(out);
dumpChildren(prefix);
}