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

@@ -965,13 +965,10 @@ public class ResolvableType implements Serializable {
return "?";
}
}
StringBuilder result = new StringBuilder(this.resolved.getName());
if (hasGenerics()) {
result.append('<');
result.append(StringUtils.arrayToDelimitedString(getGenerics(), ", "));
result.append('>');
return this.resolved.getName() + '<' + StringUtils.arrayToDelimitedString(getGenerics(), ", ") + '>';
}
return result.toString();
return this.resolved.getName();
}