jfinal enjoy 3.5
This commit is contained in:
@@ -22,7 +22,6 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.HashMap;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Modifier;
|
||||
import com.jfinal.kit.HashKit;
|
||||
@@ -54,9 +53,9 @@ public class SharedMethodKit {
|
||||
if (method == null) {
|
||||
method = doGetSharedMethodInfo(methodName, argTypes);
|
||||
if (method != null) {
|
||||
methodCache.put(key, method);
|
||||
methodCache.putIfAbsent(key, method);
|
||||
}
|
||||
// shared method 不支持 null safe,不缓存: methodCache.put(key, Boolean.FALSE)
|
||||
// shared method 不支持 null safe,不缓存: methodCache.putIfAbsent(key, Void.class)
|
||||
}
|
||||
return method;
|
||||
}
|
||||
@@ -174,7 +173,7 @@ public class SharedMethodKit {
|
||||
this.target = target;
|
||||
}
|
||||
|
||||
public Object invoke(Object... args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
|
||||
public Object invoke(Object... args) throws ReflectiveOperationException {
|
||||
return super.invoke(target, args);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user