|
|
@@ -99,6 +99,10 @@ public class MethodKit {
|
|
|
forbiddenClasses.add(clazz);
|
|
|
}
|
|
|
|
|
|
+ public static void removeForbiddenClass(Class<?> clazz) {
|
|
|
+ forbiddenClasses.remove(clazz);
|
|
|
+ }
|
|
|
+
|
|
|
public static boolean isForbiddenMethod(String methodName) {
|
|
|
return forbiddenMethods.contains(methodName);
|
|
|
}
|
|
|
@@ -107,6 +111,10 @@ public class MethodKit {
|
|
|
forbiddenMethods.add(methodName);
|
|
|
}
|
|
|
|
|
|
+ public static void removeForbiddenMethod(String methodName) {
|
|
|
+ forbiddenMethods.remove(methodName);
|
|
|
+ }
|
|
|
+
|
|
|
public static MethodInfo getMethod(Class<?> targetClass, String methodName, Object[] argValues) {
|
|
|
Class<?>[] argTypes = getArgTypes(argValues);
|
|
|
Long key = getMethodKey(targetClass, methodName, argTypes);
|