KEYCLOAK-14474 ConsentsTest fails intermittently on auth-server-undertow

This commit is contained in:
vramik 2020-07-07 11:09:41 +02:00 committed by Hynek Mlnařík
parent 738f24aa38
commit 71dca9e1b9

View file

@ -17,7 +17,6 @@
package org.keycloak.models.cache.infinispan; package org.keycloak.models.cache.infinispan;
import org.keycloak.models.ClientModel;
import org.keycloak.models.ClientScopeModel; import org.keycloak.models.ClientScopeModel;
import org.keycloak.models.ProtocolMapperModel; import org.keycloak.models.ProtocolMapperModel;
import org.keycloak.models.RealmModel; import org.keycloak.models.RealmModel;
@ -239,7 +238,7 @@ public class ClientScopeAdapter implements ClientScopeModel {
@Override @Override
public boolean equals(Object o) { public boolean equals(Object o) {
if (this == o) return true; if (this == o) return true;
if (!(o instanceof ClientModel)) return false; if (!(o instanceof ClientScopeModel)) return false;
ClientScopeModel that = (ClientScopeModel) o; ClientScopeModel that = (ClientScopeModel) o;
return that.getId().equals(getId()); return that.getId().equals(getId());