See gh-13963
This commit is contained in:
Johnny Lim
2018-08-01 17:41:15 +09:00
committed by Stephane Nicoll
parent 4e45f36bd1
commit 94468e5865
4 changed files with 5 additions and 5 deletions

View File

@@ -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() : ",";
}