Polish
See gh-13963
This commit is contained in:
committed by
Stephane Nicoll
parent
4e45f36bd1
commit
94468e5865
@@ -73,10 +73,10 @@ final class CollectionToDelimitedStringConverter implements ConditionalGenericCo
|
||||
}
|
||||
return source.stream()
|
||||
.map((element) -> convertElement(element, sourceType, targetType))
|
||||
.collect(Collectors.joining(getDelimter(sourceType)));
|
||||
.collect(Collectors.joining(getDelimiter(sourceType)));
|
||||
}
|
||||
|
||||
private CharSequence getDelimter(TypeDescriptor sourceType) {
|
||||
private CharSequence getDelimiter(TypeDescriptor sourceType) {
|
||||
Delimiter annotation = sourceType.getAnnotation(Delimiter.class);
|
||||
return (annotation != null) ? annotation.value() : ",";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user