From 71dca9e1b99c05aa2b7c7d38f46b769df509ec04 Mon Sep 17 00:00:00 2001 From: vramik Date: Tue, 7 Jul 2020 11:09:41 +0200 Subject: [PATCH] KEYCLOAK-14474 ConsentsTest fails intermittently on auth-server-undertow --- .../keycloak/models/cache/infinispan/ClientScopeAdapter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/model/infinispan/src/main/java/org/keycloak/models/cache/infinispan/ClientScopeAdapter.java b/model/infinispan/src/main/java/org/keycloak/models/cache/infinispan/ClientScopeAdapter.java index 3e9fc6f481..7a49b08450 100755 --- a/model/infinispan/src/main/java/org/keycloak/models/cache/infinispan/ClientScopeAdapter.java +++ b/model/infinispan/src/main/java/org/keycloak/models/cache/infinispan/ClientScopeAdapter.java @@ -17,7 +17,6 @@ package org.keycloak.models.cache.infinispan; -import org.keycloak.models.ClientModel; import org.keycloak.models.ClientScopeModel; import org.keycloak.models.ProtocolMapperModel; import org.keycloak.models.RealmModel; @@ -239,7 +238,7 @@ public class ClientScopeAdapter implements ClientScopeModel { @Override public boolean equals(Object o) { if (this == o) return true; - if (!(o instanceof ClientModel)) return false; + if (!(o instanceof ClientScopeModel)) return false; ClientScopeModel that = (ClientScopeModel) o; return that.getId().equals(getId());