소스 검색

Removed "== true" in boolean.

Luke Taylor 19 년 전
부모
커밋
52a212e609
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/src/main/java/org/acegisecurity/providers/UsernamePasswordAuthenticationToken.java

+ 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");
         }