From 511701ebf42e7a9bc472122cb8ad3e680c6843f4 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Wed, 24 Jun 2009 22:09:46 +0000 Subject: [PATCH] polish --- .../ui/binding/support/GenericFormatterRegistry.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/org.springframework.context/src/main/java/org/springframework/ui/binding/support/GenericFormatterRegistry.java b/org.springframework.context/src/main/java/org/springframework/ui/binding/support/GenericFormatterRegistry.java index c4b061a34c1..8cdf7941954 100644 --- a/org.springframework.context/src/main/java/org/springframework/ui/binding/support/GenericFormatterRegistry.java +++ b/org.springframework.context/src/main/java/org/springframework/ui/binding/support/GenericFormatterRegistry.java @@ -42,14 +42,6 @@ public class GenericFormatterRegistry implements FormatterRegistry { private Map annotationFormatters = new HashMap(); - 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) {