Browse Source

polish

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1418 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Keith Donald 17 years ago
parent
commit
d22697c41b
  1. 8
      org.springframework.context/src/main/java/org/springframework/ui/binding/support/GenericFormatterRegistry.java

8
org.springframework.context/src/main/java/org/springframework/ui/binding/support/GenericFormatterRegistry.java

@ -42,14 +42,6 @@ public class GenericFormatterRegistry implements FormatterRegistry { @@ -42,14 +42,6 @@ public class GenericFormatterRegistry implements FormatterRegistry {
private Map<Class, AnnotationFormatterFactory> annotationFormatters = new HashMap<Class, AnnotationFormatterFactory>();
public Formatter<?> getFormatter(Class<?> propertyType) {
if (propertyType.isAnnotation()) {
return annotationFormatters.get(propertyType).getFormatter(null);
} else {
return typeFormatters.get(propertyType);
}
}
public Formatter<?> getFormatter(TypeDescriptor<?> propertyType) {
Formatter<?> formatter = typeFormatters.get(propertyType.getType());
if (formatter != null) {

Loading…
Cancel
Save