diff --git a/pmd/src/net/sourceforge/pmd/lang/java/rule/strings/ConsecutiveLiteralAppendsRule.java b/pmd/src/net/sourceforge/pmd/lang/java/rule/strings/ConsecutiveLiteralAppendsRule.java index 4ef5922267..2b2af6bd2c 100644 --- a/pmd/src/net/sourceforge/pmd/lang/java/rule/strings/ConsecutiveLiteralAppendsRule.java +++ b/pmd/src/net/sourceforge/pmd/lang/java/rule/strings/ConsecutiveLiteralAppendsRule.java @@ -31,14 +31,14 @@ import net.sourceforge.pmd.lang.java.typeresolution.TypeHelper; import net.sourceforge.pmd.lang.rule.properties.IntegerProperty; /** - * This rule finds concurrent calls to StringBuffer.append where String literals + * This rule finds concurrent calls to StringBuffer/Builder.append where String literals * are used It would be much better to make these calls using one call to * .append *
* example: * *- * StringBuffer buf = new StringBuffer(); + * StringBuilder buf = new StringBuilder(); * buf.append("Hello"); * buf.append(" ").append("World"); *@@ -46,7 +46,7 @@ import net.sourceforge.pmd.lang.rule.properties.IntegerProperty; * This would be more eloquently put as: * *
- * StringBuffer buf = new StringBuffer(); + * StringBuilder buf = new StringBuilder(); * buf.append("Hello World"); ** diff --git a/pmd/src/net/sourceforge/pmd/lang/java/symboltable/AbstractScope.java b/pmd/src/net/sourceforge/pmd/lang/java/symboltable/AbstractScope.java index 743330e6a2..dc0db82ce5 100644 --- a/pmd/src/net/sourceforge/pmd/lang/java/symboltable/AbstractScope.java +++ b/pmd/src/net/sourceforge/pmd/lang/java/symboltable/AbstractScope.java @@ -50,7 +50,7 @@ public abstract class AbstractScope implements Scope { protected abstract NameDeclaration findVariableHere(NameOccurrence occurrence); protected