net.sourceforge.pmd.rules.strings

Class AppendCharacterWithChar

public class AppendCharacterWithChar extends AbstractRule

This rule finds the following:

         StringBuffer.append("c"); // appends a
         single character
 

It is preferable to use StringBuffer.append('c'); // appends a single character Implementation of PMD RFE 1373863

Method Summary
Objectvisit(ASTLiteral node, Object data)

Method Detail

visit

public Object visit(ASTLiteral node, Object data)