mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-25 05:22:16 +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;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
private SecurityExpressionHandler<FilterInvocation> getExpressionHandler() throws IOException {
|
||||
ApplicationContext appContext = WebApplicationContextUtils
|
||||
.getRequiredWebApplicationContext(getServletContext());
|
||||
|
@ -33,6 +33,7 @@ import java.util.*;
|
||||
*
|
||||
* @author Francois Beausoleil
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class AuthorizeTagCustomGrantedAuthorityTests {
|
||||
//~ Instance fields ================================================================================================
|
||||
|
||||
@ -57,6 +58,7 @@ public class AuthorizeTagCustomGrantedAuthorityTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("serial")
|
||||
public void testRejectsRequestWhenCustomAuthorityReturnsNull() throws JspException {
|
||||
authorizeTag.setIfAnyGranted("ROLE_TELLER");
|
||||
List<GrantedAuthority> authorities = new ArrayList<GrantedAuthority>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user