use of com.sun.beans.editors.EnumEditor in project jdk8u_jdk by JetBrains.
the class PropertyEditorFinder method find.
@Override
public PropertyEditor find(Class<?> type) {
Class<?> predefined;
synchronized (this.registry) {
predefined = this.registry.get(type);
}
PropertyEditor editor = instantiate(predefined, null);
if (editor == null) {
editor = super.find(type);
if ((editor == null) && (null != type.getEnumConstants())) {
editor = new EnumEditor(type);
}
}
return editor;
}
Aggregations