From 0b2802fa1896c70c2be0cd9f89a120c2a7f5045f Mon Sep 17 00:00:00 2001 From: Alexander Schwartz Date: Tue, 7 Mar 2023 18:51:19 +0100 Subject: [PATCH] Fixing compile time warnings Avoiding calling deprecated methods, and adding compile time dependencies for annotations. Closes #17499 --- pom.xml | 5 +++++ testsuite/model/pom.xml | 6 ++++++ .../java/org/keycloak/testsuite/model/HotRodServerRule.java | 5 ++--- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 56302fa7c2..d196bd27ef 100644 --- a/pom.xml +++ b/pom.xml @@ -1017,6 +1017,11 @@ infinispan-remote-query-client ${infinispan.version} + + org.infinispan + infinispan-component-annotations + ${infinispan.version} + org.infinispan.protostream protostream-processor diff --git a/testsuite/model/pom.xml b/testsuite/model/pom.xml index e3d2d27a21..9bdecc68e0 100644 --- a/testsuite/model/pom.xml +++ b/testsuite/model/pom.xml @@ -127,6 +127,12 @@ ${testcontainers.version} test + + + org.infinispan + infinispan-component-annotations + provided + diff --git a/testsuite/model/src/main/java/org/keycloak/testsuite/model/HotRodServerRule.java b/testsuite/model/src/main/java/org/keycloak/testsuite/model/HotRodServerRule.java index 64e55531ac..c528a45fb1 100644 --- a/testsuite/model/src/main/java/org/keycloak/testsuite/model/HotRodServerRule.java +++ b/testsuite/model/src/main/java/org/keycloak/testsuite/model/HotRodServerRule.java @@ -15,7 +15,6 @@ import org.infinispan.server.hotrod.configuration.HotRodServerConfigurationBuild import org.junit.rules.ExternalResource; import org.keycloak.Config; import org.keycloak.connections.infinispan.InfinispanUtil; -import org.keycloak.models.map.storage.hotRod.common.HotRodUtils; import java.io.IOException; @@ -99,10 +98,10 @@ public class HotRodServerRule extends ExternalResource { sessionConfigBuilder1.sites().addBackup() .site("site-2").backupFailurePolicy(BackupFailurePolicy.IGNORE).strategy(BackupConfiguration.BackupStrategy.SYNC) - .replicationTimeout(15000).enabled(true); + .replicationTimeout(15000); sessionConfigBuilder2.sites().addBackup() .site("site-1").backupFailurePolicy(BackupFailurePolicy.IGNORE).strategy(BackupConfiguration.BackupStrategy.SYNC) - .replicationTimeout(15000).enabled(true); + .replicationTimeout(15000); Configuration sessionCacheConfiguration1 = sessionConfigBuilder1.build(); Configuration sessionCacheConfiguration2 = sessionConfigBuilder2.build();