From d2c3e738c18bf1522a116332d0d15faf882b0c52 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Tue, 9 Jun 2009 20:14:17 +0000 Subject: [PATCH] polish git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1336 50f2f4bb-b051-0410-bef5-90022cba6387 --- .../ui/binding/support/GenericBinder.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/org.springframework.context/src/main/java/org/springframework/ui/binding/support/GenericBinder.java b/org.springframework.context/src/main/java/org/springframework/ui/binding/support/GenericBinder.java index 25d9058cb1f..a22c10aac78 100644 --- a/org.springframework.context/src/main/java/org/springframework/ui/binding/support/GenericBinder.java +++ b/org.springframework.context/src/main/java/org/springframework/ui/binding/support/GenericBinder.java @@ -157,6 +157,8 @@ public class GenericBinder implements Binder { } return results; } + + // internal helpers class BindingImpl implements Binding { @@ -334,15 +336,16 @@ public class GenericBinder implements Binder { return new ExpressionEvaluationErrorResult(property.getExpressionString(), userValue, e); } } + - } + private EvaluationContext createEvaluationContext() { + StandardEvaluationContext context = new StandardEvaluationContext(); + context.setRootObject(model); + context.addPropertyAccessor(new MapAccessor()); + context.setTypeConverter(new StandardTypeConverter(typeConverter)); + return context; + } - private EvaluationContext createEvaluationContext() { - StandardEvaluationContext context = new StandardEvaluationContext(); - context.setRootObject(model); - context.addPropertyAccessor(new MapAccessor()); - context.setTypeConverter(new StandardTypeConverter(typeConverter)); - return context; } private Class getAnnotationType(AnnotationFormatterFactory factory) {