[java-runtime] Warnings fixed

GitOrigin-RevId: 612a078152b45c87a582d0620edde1b9c152c67a
This commit is contained in:
Tagir Valeev
2023-10-18 16:52:00 +02:00
committed by intellij-monorepo-bot
parent 60b47aeb8f
commit 7c1afca9d1

View File

@@ -11,9 +11,9 @@ public final class DefaultMethodInvoker {
public static Object invoke(Object obj, String name)
throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
Method method = obj.getClass().getMethod(name, null);
Method method = obj.getClass().getMethod(name);
method.setAccessible(true);
Object res = method.invoke(obj, null);
Object res = method.invoke(obj);
method.setAccessible(false);
return res;
}