Revert "KeycloakRole equals only with itself"

This reverts commit 2899375614.
This commit is contained in:
Pedro Igor 2019-07-08 14:33:35 -03:00
parent 5a5325672b
commit 9215957bd0

View file

@ -51,13 +51,13 @@ public class KeycloakRole implements GrantedAuthority {
if (this == o) { if (this == o) {
return true; return true;
} }
if (!(o instanceof GrantedAuthority)) { if (!(o instanceof KeycloakRole)) {
return false; return false;
} }
GrantedAuthority that = (GrantedAuthority) o; KeycloakRole that = (KeycloakRole) o;
if (!role.equals(that.getAuthority())) { if (!role.equals(that.role)) {
return false; return false;
} }