mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
修复MVEL加载错误问题
This commit is contained in:
parent
2c9d579c59
commit
e91d5d8e44
@ -14,11 +14,14 @@ import java.util.Map;
|
||||
*/
|
||||
public class MvelEngine implements ExpressionEngine {
|
||||
|
||||
static {
|
||||
checkEngineExist(MVEL.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* 构造
|
||||
*/
|
||||
public MvelEngine(){
|
||||
checkEngineExist(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -26,7 +29,7 @@ public class MvelEngine implements ExpressionEngine {
|
||||
return MVEL.eval(expression, context);
|
||||
}
|
||||
|
||||
private void checkEngineExist(MVEL mvel){
|
||||
private static void checkEngineExist(Class<?> clazz){
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user