Replace StringBuffe with StringBuilder

Issues: SWF-1532
This commit is contained in:
Phillip Webb
2012-04-05 10:48:49 -07:00
parent 3f1c40188c
commit 58936414e4
16 changed files with 30 additions and 30 deletions

View File

@@ -41,11 +41,11 @@ public class CompositeStringExpression implements Expression {
}
public Object getValue(Object context) throws EvaluationException {
StringBuffer buffer = new StringBuffer(128);
StringBuilder value = new StringBuilder(128);
for (Expression expression : expressions) {
buffer.append(expression.getValue(context));
value.append(expression.getValue(context));
}
return buffer.toString();
return value.toString();
}
public void setValue(Object context, Object value) throws EvaluationException {

View File

@@ -199,7 +199,7 @@ public class MethodKey implements Serializable {
* Convenience method that returns the parameter types describing the signature of the method as a string.
*/
private String parameterTypesString() {
StringBuffer parameterTypesString = new StringBuffer();
StringBuilder parameterTypesString = new StringBuilder();
for (int i = 0; i < parameterTypes.length; i++) {
if (parameterTypes[i] == null) {
parameterTypesString.append("<any>");

View File

@@ -51,7 +51,7 @@ public class StaticConversionExecutorImplTests extends TestCase {
public void testIllegalType() {
try {
conversionExecutor.execute(new StringBuffer());
conversionExecutor.execute(new StringBuilder());
fail();
} catch (ConversionExecutionException e) {
// expected