Skip to content

Commit

Permalink
add missing annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Knerio committed Jun 16, 2024
1 parent 6fdbe4b commit a50174d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object> args) throws InvocationTargetException, IllegalAccessException {
public Object callMethod(@NotNull Method method, Object instance, @NotNull List<Object> args) throws InvocationTargetException, IllegalAccessException {
return callMethod(method, instance, (o, parameter) -> true, args.toArray(Object[]::new));
}

public Object callMethod(@NotNull Method method, Object instance, BiPredicate<Object, Parameter> matches, List<Object> args) throws InvocationTargetException, IllegalAccessException {
public Object callMethod(@NotNull Method method, Object instance, BiPredicate<Object, Parameter> matches, @NotNull List<Object> args) throws InvocationTargetException, IllegalAccessException {
return callMethod(method, instance, matches, args.toArray(Object[]::new));
}

Expand Down

0 comments on commit a50174d

Please sign in to comment.