diff --git a/org.springframework.context/src/main/java/org/springframework/cache/interceptor/ExpressionEvaluator.java b/org.springframework.context/src/main/java/org/springframework/cache/interceptor/ExpressionEvaluator.java index 3e989408d4..183ff1a053 100644 --- a/org.springframework.context/src/main/java/org/springframework/cache/interceptor/ExpressionEvaluator.java +++ b/org.springframework.context/src/main/java/org/springframework/cache/interceptor/ExpressionEvaluator.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2011 the original author or authors. + * Copyright 2002-2012 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. @@ -39,16 +39,16 @@ import org.springframework.expression.spel.standard.SpelExpressionParser; */ class ExpressionEvaluator { - private SpelExpressionParser parser = new SpelExpressionParser(); + private final SpelExpressionParser parser = new SpelExpressionParser(); // shared param discoverer since it caches data internally - private ParameterNameDiscoverer paramNameDiscoverer = new LocalVariableTableParameterNameDiscoverer(); + private final ParameterNameDiscoverer paramNameDiscoverer = new LocalVariableTableParameterNameDiscoverer(); - private Map conditionCache = new ConcurrentHashMap(); + private final Map conditionCache = new ConcurrentHashMap(); - private Map keyCache = new ConcurrentHashMap(); + private final Map keyCache = new ConcurrentHashMap(); - private Map targetMethodCache = new ConcurrentHashMap(); + private final Map targetMethodCache = new ConcurrentHashMap(); public EvaluationContext createEvaluationContext(