Polishing
This commit is contained in:
@@ -80,8 +80,8 @@ public class DefaultConversionService extends GenericConversionService {
|
||||
|
||||
/**
|
||||
* Add converters appropriate for most environments.
|
||||
* @param converterRegistry the registry of converters to add to (must also be castable to ConversionService,
|
||||
* e.g. being a {@link ConfigurableConversionService})
|
||||
* @param converterRegistry the registry of converters to add to
|
||||
* (must also be castable to ConversionService, e.g. being a {@link ConfigurableConversionService})
|
||||
* @throws ClassCastException if the given ConverterRegistry could not be cast to a ConversionService
|
||||
*/
|
||||
public static void addDefaultConverters(ConverterRegistry converterRegistry) {
|
||||
@@ -100,9 +100,9 @@ public class DefaultConversionService extends GenericConversionService {
|
||||
}
|
||||
|
||||
/**
|
||||
* Add collection converters.
|
||||
* @param converterRegistry the registry of converters to add to (must also be castable to ConversionService,
|
||||
* e.g. being a {@link ConfigurableConversionService})
|
||||
* Add common collection converters.
|
||||
* @param converterRegistry the registry of converters to add to
|
||||
* (must also be castable to ConversionService, e.g. being a {@link ConfigurableConversionService})
|
||||
* @throws ClassCastException if the given ConverterRegistry could not be cast to a ConversionService
|
||||
* @since 4.2.3
|
||||
*/
|
||||
@@ -148,7 +148,7 @@ public class DefaultConversionService extends GenericConversionService {
|
||||
|
||||
converterRegistry.addConverterFactory(new StringToEnumConverterFactory());
|
||||
converterRegistry.addConverter(new EnumToStringConverter((ConversionService) converterRegistry));
|
||||
|
||||
|
||||
converterRegistry.addConverterFactory(new IntegerToEnumConverterFactory());
|
||||
converterRegistry.addConverter(new EnumToIntegerConverter((ConversionService) converterRegistry));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user