Simplify String concatenation

This commit is contained in:
stsypanov
2019-03-14 12:37:08 +02:00
committed by Juergen Hoeller
parent 9d2e7ced89
commit 29f382b04e
6 changed files with 19 additions and 32 deletions

View File

@@ -150,9 +150,7 @@ public class BeanDefinitionHolder implements BeanMetadataElement {
* @see #getBeanDefinition()
*/
public String getLongDescription() {
StringBuilder sb = new StringBuilder(getShortDescription());
sb.append(": ").append(this.beanDefinition);
return sb.toString();
return getShortDescription() + ": " + this.beanDefinition;
}
/**