Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Performance turnning

  • Loading branch information...
commit d72377a866f7a59fa3fb70bcb9e3cc164ffdae20 1 parent 092685b
dennis authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/main/java/com/googlecode/aviator/ClassExpression.java
View
5 src/main/java/com/googlecode/aviator/ClassExpression.java
@@ -52,7 +52,7 @@ public ClassExpression(Class<?> clazz) throws NoSuchMethodException, SecurityExc
*/
public Object execute(Map<String, Object> env) {
if (env == null) {
- env = new HashMap<String, Object>(AviatorEvaluator.FUNC_MAP);
+ env = new HashMap<String, Object>();
}
else {
env = new HashMap<String, Object>(env);
@@ -62,7 +62,6 @@ public Object execute(Map<String, Object> env) {
+ " is a function name,please don't use it as variable");
}
}
- env.putAll(AviatorEvaluator.FUNC_MAP);
}
try {
return this.runMethod.invoke(null, env);
@@ -87,7 +86,7 @@ public Object execute(Map<String, Object> env) {
* @see com.googlecode.aviator.IExpression#execute()
*/
public Object execute() {
- return execute(null);
+ return this.execute(null);
}
Please sign in to comment.
Something went wrong with that request. Please try again.