We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7a775f commit c283a21Copy full SHA for c283a21
core/src/main/java/org/springframework/security/authorization/AuthorizationProxyFactory.java
@@ -37,15 +37,4 @@ public interface AuthorizationProxyFactory {
37
*/
38
Object proxy(Object object);
39
40
- default Object requireProxy(Object object) {
41
- if (object == null) {
42
- return null;
43
- }
44
- Object proxy = proxy(object);
45
- if (proxy == object) {
46
- throw new IllegalArgumentException("Failed to proxy object");
47
48
- return proxy;
49
50
-
51
}
0 commit comments