mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-25 05:22:16 +00:00
SEC-1304: Removed unused compareTo method from custom GrantedAuthority.
This commit is contained in:
parent
eddde8ea28
commit
ed92d5ea71
@ -71,19 +71,6 @@ public abstract class HierarchicalRolesTestHelper {
|
||||
public String getAuthority() {
|
||||
return role;
|
||||
}
|
||||
|
||||
public int compareTo(GrantedAuthority ga) {
|
||||
if (ga != null) {
|
||||
String rhsRole = ga.getAuthority();
|
||||
|
||||
if (rhsRole == null) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return role.compareTo(rhsRole);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user