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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user