Use concatenation instead of torn StringBuilder::append chain
This commit is contained in:
committed by
Juergen Hoeller
parent
cd0b517abf
commit
604361ee1f
@@ -212,10 +212,9 @@ public abstract class AnnotationJCacheOperationSource extends AbstractFallbackJC
|
||||
parameters.add(parameterType.getName());
|
||||
}
|
||||
|
||||
StringBuilder sb = new StringBuilder(method.getDeclaringClass().getName());
|
||||
sb.append(".").append(method.getName());
|
||||
sb.append("(").append(StringUtils.collectionToCommaDelimitedString(parameters)).append(")");
|
||||
return sb.toString();
|
||||
return method.getDeclaringClass().getName()
|
||||
+ '.' + method.getName()
|
||||
+ '(' + StringUtils.collectionToCommaDelimitedString(parameters) + ')';
|
||||
}
|
||||
|
||||
private int countNonNull(Object... instances) {
|
||||
|
||||
Reference in New Issue
Block a user