Remove unecessary ReflectionField#invoke() method

This commit is contained in:
JeremyStar™ 2024-07-31 04:03:52 +02:00
parent 5187b37e53
commit 8792813e34
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -342,22 +342,6 @@ public final class ReflectionMethod {
return method.getGenericReturnType();
}
/**
* Invokes the method.
*
* @return method return value
* @throws UnexpectedThrowableException if the {@code modifiers} field could not be found
* @throws NoAccessException if access to the method has been denied
* @throws InvalidMethodSignature if the method signature is incorrect
* @throws InvocationTargetException covers exceptions thrown by the method
* @throws InstanceMethodFromStaticContextException when the target method is non-static and called from a static context
* @throws StaticInitializerException when an the static initializer fails
* @since v1-alpha2
*/
public @Nullable Object invoke() throws UnexpectedThrowableException, NoAccessException, InvalidMethodSignature, InvocationTargetException, InstanceMethodFromStaticContextException, StaticInitializerException {
return invoke(new Object[0]);
}
/**
* Invokes the method.
*