You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -718,39 +718,6 @@ public static Object invokeExactStaticMethod(final Class<?> objectClass, final S
718
718
returnmethod.invoke(null, args);
719
719
}
720
720
721
-
/**
722
-
* <p>
723
-
* Invoke a named method whose parameter type matches the object type.
724
-
* </p>
725
-
*
726
-
* <p>
727
-
* The behavior of this method is less deterministic than {@code invokeExactMethod()}. It loops through all methods with names that match and then executes
728
-
* the first it finds with compatible parameters.
729
-
* </p>
730
-
*
731
-
* <p>
732
-
* This method supports calls to methods taking primitive parameters via passing in wrapping classes. So, for example, a {@code Boolean} class would match a
733
-
* {@code boolean} primitive.
734
-
* </p>
735
-
*
736
-
* <p>
737
-
* This is a convenient wrapper for {@link #invokeMethod(Object object,String methodName,Object [] args)}.
738
-
* </p>
739
-
*
740
-
* @param object invoke method on this object
741
-
* @param methodName get method with this name
742
-
* @param arg use this argument. May be null (this will result in calling the parameterless method with name {@code methodName}).
743
-
* @return The value returned by the invoked method
744
-
* @throws NoSuchMethodException if there is no such accessible method
745
-
* @throws InvocationTargetException wraps an exception thrown by the method invoked
746
-
* @throws IllegalAccessException if the requested method is not accessible via reflection
0 commit comments