mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-05 18:22:26 +00:00
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)
|
||||
throws IllegalArgumentException {
|
||||
if (isAuthenticated == true) {
|
||||
if (isAuthenticated) {
|
||||
throw new IllegalArgumentException(
|
||||
"Cannot set this token to trusted - use constructor containing GrantedAuthority[]s instead");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user