提交 be4e5553 编写于 作者: C cherrylzhao

#1363 Remove unused method.

上级 a4e23c50
......@@ -102,7 +102,7 @@ public final class ReflectiveUtil {
}
method = getMethod(target, methodName, parameterTypes);
} else {
method = getMethod(target, methodName, null);
method = getMethod(target, methodName);
}
Preconditions.checkNotNull(method);
method.setAccessible(true);
......@@ -113,20 +113,9 @@ public final class ReflectiveUtil {
}
}
/**
* Invoke target method without argument.
*
* @param target target object
* @param methodName method name
* @return Object result
*/
public static Object methodInvoke(final Object target, final String methodName) {
return methodInvoke(target, methodName, null);
}
@SneakyThrows
@SuppressWarnings("unchecked")
private static Method getMethod(final Object target, final String methodName, final Class<?>[] parameterTypes) {
private static Method getMethod(final Object target, final String methodName, final Class<?>... parameterTypes) {
Class clazz = target.getClass();
while (null != clazz) {
try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册