polish; fixed failed tests
This commit is contained in:
@@ -77,7 +77,7 @@ abstract class AbstractDateTimeAnnotationFormatterFactory<A extends Annotation>
|
||||
// internal helpers
|
||||
|
||||
private Set<Class<?>> createPropertyTypes() {
|
||||
Set<Class<?>> propertyTypes = new HashSet<Class<?>>();
|
||||
Set<Class<?>> propertyTypes = new HashSet<Class<?>>(5);
|
||||
propertyTypes.add(ReadableInstant.class);
|
||||
propertyTypes.add(ReadablePartial.class);
|
||||
propertyTypes.add(Date.class);
|
||||
|
||||
@@ -149,7 +149,7 @@ public abstract class AbstractPropertyBindingResult extends AbstractBindingResul
|
||||
valueType = getFieldType(field);
|
||||
}
|
||||
PropertyEditor editor = super.findEditor(field, valueType);
|
||||
if (editor == null) {
|
||||
if (editor == null && this.formattingService != null) {
|
||||
TypeDescriptor td = (field != null ?
|
||||
getPropertyAccessor().getPropertyTypeDescriptor(fixedField(field)) :
|
||||
TypeDescriptor.valueOf(valueType));
|
||||
|
||||
Reference in New Issue
Block a user