Ver código fonte

Removed "== true" in boolean.

Luke Taylor 19 anos atrás
pai
commit
52a212e609

+ 1 - 1
core/src/main/java/org/acegisecurity/providers/UsernamePasswordAuthenticationToken.java

@@ -88,7 +88,7 @@ public class UsernamePasswordAuthenticationToken
 
     public void setAuthenticated(boolean isAuthenticated)
         throws IllegalArgumentException {
-        if (isAuthenticated == true) {
+        if (isAuthenticated) {
             throw new IllegalArgumentException(
                 "Cannot set this token to trusted - use constructor containing GrantedAuthority[]s instead");
         }