parent
e822be5a75
commit
49c4d310b5
|
@ -423,9 +423,6 @@ public class PropertyEditorRegistrySupport implements PropertyEditorRegistry {
|
||||||
if (editor == null) {
|
if (editor == null) {
|
||||||
// Find editor for superclass or interface.
|
// Find editor for superclass or interface.
|
||||||
for (Map.Entry<Class<?>, PropertyEditor> entry : this.customEditors.entrySet()) {
|
for (Map.Entry<Class<?>, PropertyEditor> entry : this.customEditors.entrySet()) {
|
||||||
if (editor != null) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
Class<?> key = entry.getKey();
|
Class<?> key = entry.getKey();
|
||||||
if (key.isAssignableFrom(requiredType)) {
|
if (key.isAssignableFrom(requiredType)) {
|
||||||
editor = entry.getValue();
|
editor = entry.getValue();
|
||||||
|
@ -435,6 +432,9 @@ public class PropertyEditorRegistrySupport implements PropertyEditorRegistry {
|
||||||
this.customEditorCache = new HashMap<>();
|
this.customEditorCache = new HashMap<>();
|
||||||
}
|
}
|
||||||
this.customEditorCache.put(requiredType, editor);
|
this.customEditorCache.put(requiredType, editor);
|
||||||
|
if (editor != null) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue