From cd40d6c20d8891014a38f53eadc8f8778a149349 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Fri, 30 Oct 2009 19:19:27 +0000 Subject: [PATCH] polish; fixed failed tests git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2235 50f2f4bb-b051-0410-bef5-90022cba6387 --- .../AbstractDateTimeAnnotationFormatterFactory.java | 2 +- .../validation/AbstractPropertyBindingResult.java | 2 +- org.springframework.core/.classpath | 1 - org.springframework.core/ivy.xml | 1 - org.springframework.core/pom.xml | 6 ------ org.springframework.core/template.mf | 1 - 6 files changed, 2 insertions(+), 11 deletions(-) diff --git a/org.springframework.context/src/main/java/org/springframework/ui/format/jodatime/AbstractDateTimeAnnotationFormatterFactory.java b/org.springframework.context/src/main/java/org/springframework/ui/format/jodatime/AbstractDateTimeAnnotationFormatterFactory.java index 9d705b700ef..65c2bca7254 100644 --- a/org.springframework.context/src/main/java/org/springframework/ui/format/jodatime/AbstractDateTimeAnnotationFormatterFactory.java +++ b/org.springframework.context/src/main/java/org/springframework/ui/format/jodatime/AbstractDateTimeAnnotationFormatterFactory.java @@ -77,7 +77,7 @@ abstract class AbstractDateTimeAnnotationFormatterFactory // internal helpers private Set> createPropertyTypes() { - Set> propertyTypes = new HashSet>(); + Set> propertyTypes = new HashSet>(5); propertyTypes.add(ReadableInstant.class); propertyTypes.add(ReadablePartial.class); propertyTypes.add(Date.class); diff --git a/org.springframework.context/src/main/java/org/springframework/validation/AbstractPropertyBindingResult.java b/org.springframework.context/src/main/java/org/springframework/validation/AbstractPropertyBindingResult.java index 1067c8de532..8fdd8aa81a3 100644 --- a/org.springframework.context/src/main/java/org/springframework/validation/AbstractPropertyBindingResult.java +++ b/org.springframework.context/src/main/java/org/springframework/validation/AbstractPropertyBindingResult.java @@ -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)); diff --git a/org.springframework.core/.classpath b/org.springframework.core/.classpath index 6f73abf26f1..d4508b4e23f 100644 --- a/org.springframework.core/.classpath +++ b/org.springframework.core/.classpath @@ -15,6 +15,5 @@ - diff --git a/org.springframework.core/ivy.xml b/org.springframework.core/ivy.xml index 32c6e18edde..48cf8f9a438 100644 --- a/org.springframework.core/ivy.xml +++ b/org.springframework.core/ivy.xml @@ -26,7 +26,6 @@ - diff --git a/org.springframework.core/pom.xml b/org.springframework.core/pom.xml index bd6948545f8..ad0aaa9dc85 100644 --- a/org.springframework.core/pom.xml +++ b/org.springframework.core/pom.xml @@ -41,12 +41,6 @@ aspectjweaver true - - joda-time - joda-time - 1.6 - true - org.jboss.vfs com.springsource.org.jboss.virtual diff --git a/org.springframework.core/template.mf b/org.springframework.core/template.mf index 23560197576..218e9ab926c 100644 --- a/org.springframework.core/template.mf +++ b/org.springframework.core/template.mf @@ -10,7 +10,6 @@ Import-Template: org.springframework.asm.*;version="[3.0.0, 3.0.1)";resolution:=optional, org.apache.log4j.*;version="[1.2.15, 2.0.0)";resolution:=optional, org.aspectj.*;version="[1.5.4, 2.0.0)";resolution:=optional, - org.joda.*;version="[1.6.0, 2.0.0)";resolution:=optional, org.jboss.virtual.*;version="[2.1.0.GA, 3.0.0)";resolution:=optional, org.xml.sax.*;version="0";resolution:=optional, org.w3c.dom.*;version="0";resolution:=optional