Upgrade to Reactor 2
Issue: SPR-12599
This commit is contained in:
committed by
Rossen Stoyanchev
parent
122d3476d9
commit
74c0250525
@@ -99,7 +99,7 @@ public class StreamConverter implements ConditionalGenericConverter {
|
||||
}
|
||||
|
||||
private Object convertFromStream(Stream<?> source, TypeDescriptor streamType, TypeDescriptor targetType) {
|
||||
List<Object> content = source.collect(Collectors.toList());
|
||||
List<Object> content = source.collect(Collectors.<Object>toList());
|
||||
TypeDescriptor listType = TypeDescriptor.collection(List.class, streamType.getElementTypeDescriptor());
|
||||
return this.conversionService.convert(content, listType, targetType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user