mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 13:31:46 +00:00
polish; fixed failed tests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2235 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
+1
-1
@@ -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