forked from phoedos/pmd
*** 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:
@ -31,6 +31,7 @@ public class UseStringBufferForStringAppends extends AbstractRule {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (statement.jjtGetNumChildren() > 0 && statement.jjtGetChild(0).getClass().equals(ASTPrimaryExpression.class)) {
|
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:
|
// check that we're looking at the "left hand" node. NB:
|
||||||
// no.isRightHand / no.isLeftHand doesn't look like it works
|
// no.isRightHand / no.isLeftHand doesn't look like it works
|
||||||
ASTName astName = (ASTName) ((SimpleNode) statement.jjtGetChild(0)).getFirstChildOfType(ASTName.class);
|
ASTName astName = (ASTName) ((SimpleNode) statement.jjtGetChild(0)).getFirstChildOfType(ASTName.class);
|
||||||
|
Reference in New Issue
Block a user