This commit is contained in:
Mark Fisher
2009-04-08 13:11:35 +00:00
parent 8908aaece2
commit 33787588ab

View File

@@ -22,9 +22,9 @@ import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.lang.reflect.WildcardType;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import org.springframework.integration.core.Message;
import org.springframework.util.Assert;
@@ -38,7 +38,7 @@ import org.springframework.util.ClassUtils;
*/
public class PayloadTypeMatchingHandlerMethodResolver implements HandlerMethodResolver {
private final Map<Class<?>, Method> methodMap = new HashMap<Class<?>, Method>();
private final Map<Class<?>, Method> methodMap = new ConcurrentHashMap<Class<?>, Method>();
private volatile Method fallbackMethod;