diff --git a/java/org/apache/el/lang/FunctionMapperImpl.java b/java/org/apache/el/lang/FunctionMapperImpl.java index a30254169158..eccb1c0ae442 100644 --- a/java/org/apache/el/lang/FunctionMapperImpl.java +++ b/java/org/apache/el/lang/FunctionMapperImpl.java @@ -21,8 +21,8 @@ import java.io.ObjectInput; import java.io.ObjectOutput; import java.lang.reflect.Method; -import java.util.Map; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; import javax.el.FunctionMapper; @@ -37,7 +37,7 @@ public class FunctionMapperImpl extends FunctionMapper implements private static final long serialVersionUID = 1L; - protected Map functions = new ConcurrentHashMap<>(); + protected ConcurrentMap functions = new ConcurrentHashMap<>(); /* * (non-Javadoc) @@ -84,7 +84,7 @@ public void writeExternal(ObjectOutput out) throws IOException { @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { - this.functions = (Map) in.readObject(); + this.functions = (ConcurrentMap) in.readObject(); } public static class Function implements Externalizable {