From 83692a22da7c46cdc76647e77aeed659a734f379 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Sun, 14 Oct 2018 14:08:50 +0100 Subject: [PATCH] Polish "Use non-reflective APIs to retrieve config prop binding converters" Closes gh-14657 --- .../context/properties/ConversionServiceDeducer.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConversionServiceDeducer.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConversionServiceDeducer.java index 36dbf72118..481efb6375 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConversionServiceDeducer.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConversionServiceDeducer.java @@ -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 converters; + private final List converters; - /** - * A list of custom converters (in addition to the defaults) to use when - * converting properties for binding. - */ - private List genericConverters; + private final List genericConverters; Factory(BeanFactory beanFactory) { this.converters = beans(beanFactory, Converter.class,