forked from phoedos/pmd
#1371 fix unit test
This commit is contained in:
@ -211,8 +211,6 @@ public class InsufficientStringBufferDeclarationRule extends AbstractJavaRule {
|
||||
}
|
||||
}
|
||||
}
|
||||
StringBuffer sb = new StringBuffer();
|
||||
sb.append(3);
|
||||
return anticipatedLength;
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user