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) {