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…
Reference in New Issue