Use concatenation instead of torn StringBuilder::append chain

This commit is contained in:
stsypanov
2019-04-09 11:44:16 +03:00
committed by Juergen Hoeller
parent cd0b517abf
commit 604361ee1f
3 changed files with 6 additions and 13 deletions

View File

@@ -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) {