Polish "Use non-reflective APIs to retrieve config prop binding converters"

Closes gh-14657
This commit is contained in:
Andy Wilkinson
2018-10-14 14:08:50 +01:00
parent 2094e54ef2
commit 83692a22da

View File

@@ -58,18 +58,10 @@ class ConversionServiceDeducer {
private static class Factory {
/**
* A list of custom converters (in addition to the defaults) to use when
* converting properties for binding.
*/
@SuppressWarnings("rawtypes")
private List<Converter> converters;
private final List<Converter> converters;
/**
* A list of custom converters (in addition to the defaults) to use when
* converting properties for binding.
*/
private List<GenericConverter> genericConverters;
private final List<GenericConverter> genericConverters;
Factory(BeanFactory beanFactory) {
this.converters = beans(beanFactory, Converter.class,