From 8792813e345bc60e2b7d42fcca23ee5b3024b344 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Wed, 31 Jul 2024 04:03:52 +0200 Subject: [PATCH] Remove unecessary ReflectionField#invoke() method --- .../base/reflection/ReflectionMethod.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/base/src/main/java/de/staropensource/sosengine/base/reflection/ReflectionMethod.java b/base/src/main/java/de/staropensource/sosengine/base/reflection/ReflectionMethod.java index 9e1c26c..4a5a712 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/reflection/ReflectionMethod.java +++ b/base/src/main/java/de/staropensource/sosengine/base/reflection/ReflectionMethod.java @@ -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. *