Removed "== true" in boolean.
This commit is contained in:
parent
5475ab0575
commit
52a212e609
|
@ -88,7 +88,7 @@ public class UsernamePasswordAuthenticationToken
|
||||||
|
|
||||||
public void setAuthenticated(boolean isAuthenticated)
|
public void setAuthenticated(boolean isAuthenticated)
|
||||||
throws IllegalArgumentException {
|
throws IllegalArgumentException {
|
||||||
if (isAuthenticated == true) {
|
if (isAuthenticated) {
|
||||||
throw new IllegalArgumentException(
|
throw new IllegalArgumentException(
|
||||||
"Cannot set this token to trusted - use constructor containing GrantedAuthority[]s instead");
|
"Cannot set this token to trusted - use constructor containing GrantedAuthority[]s instead");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue