From 1d8ce7d5cf661697a2389019db8a4cfbfc0daad5 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Mon, 22 Mar 2010 15:08:57 +0000 Subject: [PATCH] fixed double fixedField call for getFieldType (SPR-7019) git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3134 50f2f4bb-b051-0410-bef5-90022cba6387 --- .../springframework/validation/AbstractBindingResult.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/org.springframework.context/src/main/java/org/springframework/validation/AbstractBindingResult.java b/org.springframework.context/src/main/java/org/springframework/validation/AbstractBindingResult.java index 4432aad6044..d6e061c5974 100644 --- a/org.springframework.context/src/main/java/org/springframework/validation/AbstractBindingResult.java +++ b/org.springframework.context/src/main/java/org/springframework/validation/AbstractBindingResult.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2010 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -130,9 +130,9 @@ public abstract class AbstractBindingResult extends AbstractErrors implements Bi } public String[] resolveMessageCodes(String errorCode, String field) { - String fixedField = fixedField(field); - Class fieldType = getFieldType(fixedField); - return getMessageCodesResolver().resolveMessageCodes(errorCode, getObjectName(), fixedField, fieldType); + Class fieldType = getFieldType(field); + return getMessageCodesResolver().resolveMessageCodes( + errorCode, getObjectName(), fixedField(field), fieldType); }