diff --git a/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcPrincipal.java b/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcPrincipal.java index dc26a5c49be..b506b6b7596 100644 --- a/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcPrincipal.java +++ b/http/oidc/src/main/java/org/wildfly/security/http/oidc/OidcPrincipal.java @@ -50,9 +50,7 @@ public boolean equals(Object o) { OidcPrincipal that = (OidcPrincipal) o; - if (! name.equals(that.name)) return false; - - return true; + return name.equals(that.name); } @Override