From a50174d303317bfbf9f58818da9a93a6f07d31b2 Mon Sep 17 00:00:00 2001 From: Dario Date: Sun, 16 Jun 2024 15:58:12 +0200 Subject: [PATCH] add missing annotations --- .../java/de/derioo/javautils/common/ReflectionsUtility.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/de/derioo/javautils/common/ReflectionsUtility.java b/common/src/main/java/de/derioo/javautils/common/ReflectionsUtility.java index 2ec23c0..1af381b 100644 --- a/common/src/main/java/de/derioo/javautils/common/ReflectionsUtility.java +++ b/common/src/main/java/de/derioo/javautils/common/ReflectionsUtility.java @@ -18,11 +18,11 @@ public Object callMethod(@NotNull Method method, Object instance, Object... args return callMethod(method, instance, (o, parameter) -> true, args); } - public Object callMethod(@NotNull Method method, Object instance, List args) throws InvocationTargetException, IllegalAccessException { + public Object callMethod(@NotNull Method method, Object instance, @NotNull List args) throws InvocationTargetException, IllegalAccessException { return callMethod(method, instance, (o, parameter) -> true, args.toArray(Object[]::new)); } - public Object callMethod(@NotNull Method method, Object instance, BiPredicate matches, List args) throws InvocationTargetException, IllegalAccessException { + public Object callMethod(@NotNull Method method, Object instance, BiPredicate matches, @NotNull List args) throws InvocationTargetException, IllegalAccessException { return callMethod(method, instance, matches, args.toArray(Object[]::new)); }