SEC-717: Resolve UserDetails.getAuthorities() sort logic issue.

This commit is contained in:
Ben Alex 2008-03-16 04:51:33 +00:00
parent 072b76e516
commit 4586183f17
1 changed files with 5 additions and 1 deletions

View File

@ -80,7 +80,11 @@ public class AuthorizeTagCustomGrantedAuthorityTests extends TestCase {
private static class CustomGrantedAuthority implements GrantedAuthority { private static class CustomGrantedAuthority implements GrantedAuthority {
private final String authority; private final String authority;
public CustomGrantedAuthority(String authority) { public int compareTo(Object o) {
return 0;
}
public CustomGrantedAuthority(String authority) {
this.authority = authority; this.authority = authority;
} }