diff --git a/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/performance/xml/InefficientStringBuffering.xml b/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/performance/xml/InefficientStringBuffering.xml index 625f0f9712..48afdcefcd 100644 --- a/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/performance/xml/InefficientStringBuffering.xml +++ b/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/performance/xml/InefficientStringBuffering.xml @@ -340,6 +340,84 @@ public class Foo { String str2 = "b"; StringBuffer sb = new StringBuffer(str1.length() + str2.length()); } +} + ]]> + + + + Violation: Avoid contact in append method invocations + 3 + 9,18,24 + + + + + No violation: Avoid contact in append method invocations + 0 +