Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
(cherry picked from commit 6526e79)
  • Loading branch information
jhoeller committed Jun 26, 2023
1 parent 14da1ac commit 02cbee5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -613,11 +613,12 @@ private List<MethodParameter> applyFilters() {

private static class MethodInvocationInterceptor implements MethodInterceptor, InvocationHandler {

@Nullable
private Method invokedMethod;

@Override
@Nullable
public Object intercept(Object object, Method method, Object[] args, MethodProxy proxy) {
public Object intercept(Object object, Method method, @Nullable Object[] args, @Nullable MethodProxy proxy) {
if (ReflectionUtils.isObjectMethod(method)) {
return ReflectionUtils.invokeMethod(method, object, args);
}
Expand All @@ -629,10 +630,11 @@ public Object intercept(Object object, Method method, Object[] args, MethodProxy

@Override
@Nullable
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
public Object invoke(Object proxy, Method method, @Nullable Object[] args) {
return intercept(proxy, method, args, null);
}

@Nullable
Method getInvokedMethod() {
return this.invokedMethod;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -617,11 +617,12 @@ private List<MethodParameter> applyFilters() {

private static class MethodInvocationInterceptor implements MethodInterceptor, InvocationHandler {

@Nullable
private Method invokedMethod;

@Override
@Nullable
public Object intercept(Object object, Method method, Object[] args, MethodProxy proxy) {
public Object intercept(Object object, Method method, @Nullable Object[] args, @Nullable MethodProxy proxy) {
if (ReflectionUtils.isObjectMethod(method)) {
return ReflectionUtils.invokeMethod(method, object, args);
}
Expand All @@ -633,10 +634,11 @@ public Object intercept(Object object, Method method, Object[] args, MethodProxy

@Override
@Nullable
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
public Object invoke(Object proxy, Method method, @Nullable Object[] args) {
return intercept(proxy, method, args, null);
}

@Nullable
Method getInvokedMethod() {
return this.invokedMethod;
}
Expand Down

0 comments on commit 02cbee5

Please sign in to comment.