#1371 fix unit test

This commit is contained in:
Andreas Dangel
2015-09-04 21:48:18 +02:00
parent 0027fcdd77
commit c0c79e522f
2 changed files with 1 additions and 3 deletions

View File

@ -211,8 +211,6 @@ public class InsufficientStringBufferDeclarationRule extends AbstractJavaRule {
}
}
}
StringBuffer sb = new StringBuffer();
sb.append(3);
return anticipatedLength;
}

View File

@ -991,7 +991,7 @@ public class Test {
public class StringBufferTest {
public void test() {
final StringBuffer stringBuffer = new StringBuffer().append("Added ").append(" a ");
stringBuffer.append("string ");
stringBuffer.append("string longer than 16 characters");
}
}
]]></code>