mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 14:52:24 +00:00
SEC-717: Resolve UserDetails.getAuthorities() sort logic issue.
This commit is contained in:
parent
072b76e516
commit
4586183f17
@ -80,7 +80,11 @@ public class AuthorizeTagCustomGrantedAuthorityTests extends TestCase {
|
||||
private static class CustomGrantedAuthority implements GrantedAuthority {
|
||||
private final String authority;
|
||||
|
||||
public CustomGrantedAuthority(String authority) {
|
||||
public int compareTo(Object o) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public CustomGrantedAuthority(String authority) {
|
||||
this.authority = authority;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user