Skip to content

Commit

Permalink
Remove default method
Browse files Browse the repository at this point in the history
  • Loading branch information
jzheaux committed Mar 12, 2024
1 parent f7a775f commit c283a21
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,4 @@ public interface AuthorizationProxyFactory {
*/
Object proxy(Object object);

default Object requireProxy(Object object) {
if (object == null) {
return null;
}
Object proxy = proxy(object);
if (proxy == object) {
throw new IllegalArgumentException("Failed to proxy object");
}
return proxy;
}

}

0 comments on commit c283a21

Please sign in to comment.