Fixed visibility of 4.2's additional default converters

Issue: SPR-12175
Issue: SPR-13020
This commit is contained in:
Juergen Hoeller
2015-10-28 15:38:46 +01:00
parent 93f77f5d51
commit 91b3caf238
2 changed files with 3 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ import org.springframework.lang.UsesJava8;
* @since 4.2
*/
@UsesJava8
public class StreamConverter implements ConditionalGenericConverter {
class StreamConverter implements ConditionalGenericConverter {
private static final TypeDescriptor STREAM_TYPE = TypeDescriptor.valueOf(Stream.class);
@@ -107,8 +107,7 @@ public class StreamConverter implements ConditionalGenericConverter {
}
private Object convertToStream(Object source, TypeDescriptor sourceType, TypeDescriptor streamType) {
TypeDescriptor targetCollection =
TypeDescriptor.collection(List.class, streamType.getElementTypeDescriptor());
TypeDescriptor targetCollection = TypeDescriptor.collection(List.class, streamType.getElementTypeDescriptor());
List<?> target = (List<?>) this.conversionService.convert(source, sourceType, targetCollection);
return target.stream();
}

View File

@@ -26,7 +26,7 @@ import org.springframework.core.convert.converter.Converter;
* @author Stephane Nicoll
* @since 4.2
*/
public class StringToCharsetConverter implements Converter<String, Charset> {
class StringToCharsetConverter implements Converter<String, Charset> {
@Override
public Charset convert(String source) {