From 93de9622fc2c794c6f6a9bc7cfff745a80595fe5 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Mon, 31 Jan 2011 21:30:48 +0000 Subject: [PATCH] Remove code for parsing mvc:formatters (SPR-7732) --- .../config/AnnotationDrivenBeanDefinitionParser.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/AnnotationDrivenBeanDefinitionParser.java b/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/AnnotationDrivenBeanDefinitionParser.java index fb972fc94e..226b67b7af 100644 --- a/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/AnnotationDrivenBeanDefinitionParser.java +++ b/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/config/AnnotationDrivenBeanDefinitionParser.java @@ -183,18 +183,6 @@ class AnnotationDrivenBeanDefinitionParser implements BeanDefinitionParser { parserContext.registerComponent(new BeanComponentDefinition(conversionDef, conversionName)); conversionServiceRef = new RuntimeBeanReference(conversionName); } - Element formattersElement = DomUtils.getChildElementByTagName(element, "formatters"); - if (formattersElement != null) { - ManagedList formatters = new ManagedList(); - formatters.setSource(source); - for (Element formatter : DomUtils.getChildElementsByTagName(formattersElement, "bean")) { - BeanDefinitionHolder beanDef = parserContext.getDelegate().parseBeanDefinitionElement(formatter); - beanDef = parserContext.getDelegate().decorateBeanDefinitionIfRequired(formatter, beanDef); - formatters.add(beanDef); - } - BeanDefinition beanDef = parserContext.getRegistry().getBeanDefinition(conversionServiceRef.getBeanName()); - beanDef.getPropertyValues().add("formatters", formatters); - } return conversionServiceRef; }