@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
/ *
* Copyright 2002 - 2012 the original author or authors .
* Copyright 2002 - 2014 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 .
@ -33,6 +33,11 @@ import org.springframework.expression.TypedValue;
@@ -33,6 +33,11 @@ import org.springframework.expression.TypedValue;
* /
public class MapAccessor implements PropertyAccessor {
@Override
public Class < ? > [ ] getSpecificTargetClasses ( ) {
return new Class < ? > [ ] { Map . class } ;
}
@Override
public boolean canRead ( EvaluationContext context , Object target , String name ) throws AccessException {
Map < ? , ? > map = ( Map < ? , ? > ) target ;
@ -61,11 +66,6 @@ public class MapAccessor implements PropertyAccessor {
@@ -61,11 +66,6 @@ public class MapAccessor implements PropertyAccessor {
map . put ( name , newValue ) ;
}
@Override
public Class < ? > [ ] getSpecificTargetClasses ( ) {
return new Class < ? > [ ] { Map . class } ;
}
/ * *
* Exception thrown from { @code read } in order to reset a cached