You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/src/main/java/org/springframework/security/config/annotation/method/configuration/AuthorizationProxyWebConfiguration.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ public Object visit(AuthorizationAdvisorProxyFactory proxyFactory, Object target
51
51
if (targetinstanceofModelAndViewmav) {
52
52
Viewview = mav.getView();
53
53
StringviewName = mav.getViewName();
54
-
Map<String, Object> model = (Map<String, Object>) proxyFactory.proxy(mav.getModel());
54
+
Map<String, Object> model = proxyFactory.proxy(mav.getModel());
Copy file name to clipboardExpand all lines: config/src/test/java/org/springframework/security/config/annotation/method/configuration/AuthorizationProxyConfigurationTests.java
+5-5
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2024 the original author or authors.
2
+
* Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -58,7 +58,7 @@ public class AuthorizationProxyConfigurationTests {
Copy file name to clipboardExpand all lines: core/src/main/java/org/springframework/security/authorization/method/AuthorizationAdvisorProxyFactory.java
+5-5
Original file line number
Diff line number
Diff line change
@@ -172,16 +172,16 @@ public void afterSingletonsInstantiated() {
172
172
* @return the proxied instance
173
173
*/
174
174
@Override
175
-
publicObjectproxy(Objecttarget) {
175
+
public<T> Tproxy(Ttarget) {
176
176
if (target == null) {
177
177
returnnull;
178
178
}
179
179
if (targetinstanceofAuthorizationProxyproxied) {
180
-
returnproxied;
180
+
return(T) proxied;
181
181
}
182
182
Objectproxied = this.visitor.visit(this, target);
183
183
if (proxied != null) {
184
-
returnproxied;
184
+
return(T) proxied;
185
185
}
186
186
ProxyFactoryfactory = newProxyFactory(target);
187
187
factory.addAdvisors(this.authorizationProxy);
@@ -191,7 +191,7 @@ public Object proxy(Object target) {
0 commit comments