mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 21:39:05 +00:00
polish
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1418 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
-8
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user