*** empty log message ***

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4856 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2006-12-01 14:00:19 +00:00
parent 24d9380ea9
commit bb75de2bd0

View File

@ -31,6 +31,7 @@ public class UseStringBufferForStringAppends extends AbstractRule {
continue;
}
if (statement.jjtGetNumChildren() > 0 && statement.jjtGetChild(0).getClass().equals(ASTPrimaryExpression.class)) {
// FIXME - hm, is there a bug in those methods?
// check that we're looking at the "left hand" node. NB:
// no.isRightHand / no.isLeftHand doesn't look like it works
ASTName astName = (ASTName) ((SimpleNode) statement.jjtGetChild(0)).getFirstChildOfType(ASTName.class);