From ca159f6d9ae7ecba178738cf863dd957fec33832 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Thu, 3 Sep 2009 15:01:54 +0000 Subject: [PATCH] polish --- spring-framework-reference/src/validation.xml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/spring-framework-reference/src/validation.xml b/spring-framework-reference/src/validation.xml index 22306a1235b..9454a793c5b 100644 --- a/spring-framework-reference/src/validation.xml +++ b/spring-framework-reference/src/validation.xml @@ -765,7 +765,9 @@ public final class CustomPropertyEditorRegistrar implements PropertyEditorRegist package org.springframework.core.converter; public interface Converter { - T convert(S source) throws Exception; + + T convert(S source) throws Exception; + }]]> @@ -785,9 +787,11 @@ public interface Converter { package org.springframework.core.convert.converters; public class StringToInteger implements Converter { + public Integer convert(String source) { return Integer.valueOf(source); } + }]]> @@ -800,7 +804,9 @@ public class StringToInteger implements Converter { package org.springframework.core.converter; public interface ConverterFactory { - Converter getConverter(Class targetType); + + Converter getConverter(Class targetType); + }]]> @@ -938,9 +944,11 @@ package org.springframework.ui.format; import java.text.ParseException; public interface Formatter { + String format(T object, Locale locale); T parse(String formatted, Locale locale) throws ParseException; + }]]> @@ -1026,7 +1034,9 @@ public class Money { package org.springframework.ui.format; public interface AnnotationFormatterFactory { - Formatter getFormatter(A annotation); + + Formatter getFormatter(A annotation); + } ]]> @@ -1079,7 +1089,8 @@ public interface FormatterRegistry { void add(Formatter formatter); - void add(AnnotationFormatterFactory factory); + void add(AnnotationFormatterFactory factory); + }]]>