Merge branch '2.0.x'

This commit is contained in:
Stephane Nicoll
2018-08-01 08:48:09 +02:00
8 changed files with 30 additions and 15 deletions

View File

@@ -115,8 +115,10 @@ class PropertyMappingContextCustomizer implements ContextCustomizer {
private String getAnnotationsDescription(Set<Class<?>> annotations) {
StringBuilder result = new StringBuilder();
for (Class<?> annotation : annotations) {
result.append((result.length() != 0) ? ", " : "");
result.append("@" + ClassUtils.getShortName(annotation));
if (result.length() != 0) {
result.append(", ");
}
result.append('@').append(ClassUtils.getShortName(annotation));
}
result.insert(0, (annotations.size() != 1) ? "annotations " : "annotation ");
return result.toString();