polish; fixed failed tests

This commit is contained in:
Keith Donald
2009-10-30 19:19:27 +00:00
parent 3a3edb53f6
commit a2be2e15e9
6 changed files with 2 additions and 11 deletions

View File

@@ -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);

View File

@@ -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));