mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-26 13:53:14 +00:00
Suppress warnings in AbstractAuthorizeTag and AuthorizeTagCustomGrantedAuthorityTests
This commit is contained in:
parent
d57f1d56d5
commit
b626a63b85
@ -309,7 +309,7 @@ public abstract class AbstractAuthorizeTag {
|
|||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
private SecurityExpressionHandler<FilterInvocation> getExpressionHandler() throws IOException {
|
private SecurityExpressionHandler<FilterInvocation> getExpressionHandler() throws IOException {
|
||||||
ApplicationContext appContext = WebApplicationContextUtils
|
ApplicationContext appContext = WebApplicationContextUtils
|
||||||
.getRequiredWebApplicationContext(getServletContext());
|
.getRequiredWebApplicationContext(getServletContext());
|
||||||
|
@ -33,6 +33,7 @@ import java.util.*;
|
|||||||
*
|
*
|
||||||
* @author Francois Beausoleil
|
* @author Francois Beausoleil
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public class AuthorizeTagCustomGrantedAuthorityTests {
|
public class AuthorizeTagCustomGrantedAuthorityTests {
|
||||||
//~ Instance fields ================================================================================================
|
//~ Instance fields ================================================================================================
|
||||||
|
|
||||||
@ -57,6 +58,7 @@ public class AuthorizeTagCustomGrantedAuthorityTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@SuppressWarnings("serial")
|
||||||
public void testRejectsRequestWhenCustomAuthorityReturnsNull() throws JspException {
|
public void testRejectsRequestWhenCustomAuthorityReturnsNull() throws JspException {
|
||||||
authorizeTag.setIfAnyGranted("ROLE_TELLER");
|
authorizeTag.setIfAnyGranted("ROLE_TELLER");
|
||||||
List<GrantedAuthority> authorities = new ArrayList<GrantedAuthority>();
|
List<GrantedAuthority> authorities = new ArrayList<GrantedAuthority>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user