KEYCLOAK-12090 Simplify conditions in module "model/infinispan" (#6497)
This commit is contained in:
parent
80f4bd3822
commit
3acee944ea
10 changed files with 10 additions and 10 deletions
|
@ -655,7 +655,7 @@ public class ClientAdapter implements ClientModel, CachedObject {
|
|||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || !(o instanceof ClientModel)) return false;
|
||||
if (!(o instanceof ClientModel)) return false;
|
||||
|
||||
ClientModel that = (ClientModel) o;
|
||||
return that.getId().equals(getId());
|
||||
|
|
|
@ -239,7 +239,7 @@ public class ClientScopeAdapter implements ClientScopeModel {
|
|||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || !(o instanceof ClientModel)) return false;
|
||||
if (!(o instanceof ClientModel)) return false;
|
||||
|
||||
ClientScopeModel that = (ClientScopeModel) o;
|
||||
return that.getId().equals(getId());
|
||||
|
|
|
@ -77,7 +77,7 @@ public class GroupAdapter implements GroupModel {
|
|||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || !(o instanceof GroupModel)) return false;
|
||||
if (!(o instanceof GroupModel)) return false;
|
||||
|
||||
GroupModel that = (GroupModel) o;
|
||||
|
||||
|
|
|
@ -970,7 +970,7 @@ public class RealmAdapter implements CachedRealmModel {
|
|||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || !(o instanceof RealmModel)) return false;
|
||||
if (!(o instanceof RealmModel)) return false;
|
||||
|
||||
RealmModel that = (RealmModel) o;
|
||||
return that.getId().equals(getId());
|
||||
|
|
|
@ -229,7 +229,7 @@ public class RoleAdapter implements RoleModel {
|
|||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || !(o instanceof RoleModel)) return false;
|
||||
if (!(o instanceof RoleModel)) return false;
|
||||
|
||||
RoleModel that = (RoleModel) o;
|
||||
return that.getId().equals(getId());
|
||||
|
|
|
@ -389,7 +389,7 @@ public class UserAdapter implements CachedUserModel {
|
|||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || !(o instanceof UserModel)) return false;
|
||||
if (!(o instanceof UserModel)) return false;
|
||||
|
||||
UserModel that = (UserModel) o;
|
||||
return that.getId().equals(getId());
|
||||
|
|
|
@ -318,7 +318,7 @@ public class PolicyAdapter implements Policy, CachedModel<Policy> {
|
|||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || !(o instanceof Policy)) return false;
|
||||
if (!(o instanceof Policy)) return false;
|
||||
|
||||
Policy that = (Policy) o;
|
||||
return that.getId().equals(getId());
|
||||
|
|
|
@ -275,7 +275,7 @@ public class ResourceAdapter implements Resource, CachedModel<Resource> {
|
|||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || !(o instanceof Resource)) return false;
|
||||
if (!(o instanceof Resource)) return false;
|
||||
|
||||
Resource that = (Resource) o;
|
||||
return that.getId().equals(getId());
|
||||
|
|
|
@ -119,7 +119,7 @@ public class ResourceServerAdapter implements ResourceServer, CachedModel<Resour
|
|||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || !(o instanceof ResourceServer)) return false;
|
||||
if (!(o instanceof ResourceServer)) return false;
|
||||
|
||||
ResourceServer that = (ResourceServer) o;
|
||||
return that.getId().equals(getId());
|
||||
|
|
|
@ -124,7 +124,7 @@ public class ScopeAdapter implements Scope, CachedModel<Scope> {
|
|||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || !(o instanceof Scope)) return false;
|
||||
if (!(o instanceof Scope)) return false;
|
||||
|
||||
Scope that = (Scope) o;
|
||||
return that.getId().equals(getId());
|
||||
|
|
Loading…
Reference in a new issue