Polishing

This commit is contained in:
Juergen Hoeller
2015-12-14 00:56:06 +01:00
parent bdb606b8b1
commit 21329df7e1
2 changed files with 18 additions and 9 deletions

View File

@@ -58,7 +58,10 @@ import org.springframework.util.StringUtils;
*/
public class ReflectivePropertyAccessor implements PropertyAccessor {
private static final Set<Class<?>> ANY_TYPES = Collections.emptySet();
private static final Set<Class<?>> BOOLEAN_TYPES;
static {
Set<Class<?>> booleanTypes = new HashSet<Class<?>>();
booleanTypes.add(Boolean.class);
@@ -66,8 +69,6 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
BOOLEAN_TYPES = Collections.unmodifiableSet(booleanTypes);
}
private static final Set<Class<?>> ANY_TYPES = Collections.emptySet();
private final Map<CacheKey, InvokerPair> readerCache = new ConcurrentHashMap<CacheKey, InvokerPair>(64);
@@ -122,7 +123,7 @@ public class ReflectivePropertyAccessor implements PropertyAccessor {
}
public Member getLastReadInvokerPair() {
return lastReadInvokerPair.member;
return this.lastReadInvokerPair.member;
}
@Override