File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-beans/src/main/java/org/springframework/beans Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -423,9 +423,6 @@ private PropertyEditor getCustomEditor(@Nullable Class<?> requiredType) {
423
423
if (editor == null ) {
424
424
// Find editor for superclass or interface.
425
425
for (Map .Entry <Class <?>, PropertyEditor > entry : this .customEditors .entrySet ()) {
426
- if (editor != null ) {
427
- break ;
428
- }
429
426
Class <?> key = entry .getKey ();
430
427
if (key .isAssignableFrom (requiredType )) {
431
428
editor = entry .getValue ();
@@ -435,6 +432,9 @@ private PropertyEditor getCustomEditor(@Nullable Class<?> requiredType) {
435
432
this .customEditorCache = new HashMap <>();
436
433
}
437
434
this .customEditorCache .put (requiredType , editor );
435
+ if (editor != null ) {
436
+ break ;
437
+ }
438
438
}
439
439
}
440
440
}
You can’t perform that action at this time.
0 commit comments