Skip to content

Commit 91b3caf

Browse files
committed
Fixed visibility of 4.2's additional default converters
Issue: SPR-12175 Issue: SPR-13020
1 parent 93f77f5 commit 91b3caf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

spring-core/src/main/java/org/springframework/core/convert/support/StreamConverter.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* @since 4.2
3737
*/
3838
@UsesJava8
39-
public class StreamConverter implements ConditionalGenericConverter {
39+
class StreamConverter implements ConditionalGenericConverter {
4040

4141
private static final TypeDescriptor STREAM_TYPE = TypeDescriptor.valueOf(Stream.class);
4242

@@ -107,8 +107,7 @@ private Object convertFromStream(Stream<?> source, TypeDescriptor streamType, Ty
107107
}
108108

109109
private Object convertToStream(Object source, TypeDescriptor sourceType, TypeDescriptor streamType) {
110-
TypeDescriptor targetCollection =
111-
TypeDescriptor.collection(List.class, streamType.getElementTypeDescriptor());
110+
TypeDescriptor targetCollection = TypeDescriptor.collection(List.class, streamType.getElementTypeDescriptor());
112111
List<?> target = (List<?>) this.conversionService.convert(source, sourceType, targetCollection);
113112
return target.stream();
114113
}

spring-core/src/main/java/org/springframework/core/convert/support/StringToCharsetConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @author Stephane Nicoll
2727
* @since 4.2
2828
*/
29-
public class StringToCharsetConverter implements Converter<String, Charset> {
29+
class StringToCharsetConverter implements Converter<String, Charset> {
3030

3131
@Override
3232
public Charset convert(String source) {

0 commit comments

Comments
 (0)