Преглед на файлове

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

Ben Alex преди 17 години
родител
ревизия
4586183f17
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      taglibs/src/test/java/org/springframework/security/taglibs/authz/AuthorizeTagCustomGrantedAuthorityTests.java

+ 5 - 1
taglibs/src/test/java/org/springframework/security/taglibs/authz/AuthorizeTagCustomGrantedAuthorityTests.java

@@ -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;
         }