@@ -116,7 +116,6 @@ static class BeanFactoryAwarePropertyValueConverterFactory implements PropertyVa
116116 }
117117
118118 @ Override
119- @ SuppressWarnings ("unchecked" )
120119 public <DV , SV , C extends ValueConversionContext <?>> @ Nullable PropertyValueConverter <DV , SV , C > getConverter (
121120 Class <? extends PropertyValueConverter <DV , SV , C >> converterType ) {
122121
@@ -125,8 +124,7 @@ static class BeanFactoryAwarePropertyValueConverterFactory implements PropertyVa
125124 PropertyValueConverter <DV , SV , C > converter = beanFactory .getBeanProvider (converterType ).getIfAvailable ();
126125
127126 if (converter == null && beanFactory instanceof AutowireCapableBeanFactory ) {
128- return (PropertyValueConverter <DV , SV , C >) ((AutowireCapableBeanFactory ) beanFactory ).createBean (converterType ,
129- AutowireCapableBeanFactory .AUTOWIRE_CONSTRUCTOR , false );
127+ return ((AutowireCapableBeanFactory ) beanFactory ).createBean (converterType );
130128 }
131129
132130 return converter ;
@@ -227,8 +225,7 @@ static class Cache {
227225
228226 @ Contract ("_, null -> null;_, !null -> !null" )
229227 <S , T , C extends ValueConversionContext <?>> @ Nullable PropertyValueConverter <S , T , C > cache (
230- PersistentProperty <?> property ,
231- @ Nullable PropertyValueConverter <S , T , C > converter ) {
228+ PersistentProperty <?> property , @ Nullable PropertyValueConverter <S , T , C > converter ) {
232229
233230 perPropertyCache .putIfAbsent (property , Optional .ofNullable (converter ));
234231
0 commit comments