diff --git a/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/ShardFollowTaskReplicationTests.java b/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/ShardFollowTaskReplicationTests.java index d5307477a6cd4..1ef722914fdeb 100644 --- a/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/ShardFollowTaskReplicationTests.java +++ b/x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/action/ShardFollowTaskReplicationTests.java @@ -6,9 +6,6 @@ */ package org.elasticsearch.xpack.ccr.action; -import com.carrotsearch.hppc.LongHashSet; -import com.carrotsearch.hppc.LongSet; - import org.apache.lucene.store.IOContext; import org.elasticsearch.ElasticsearchException; import org.elasticsearch.Version; @@ -68,6 +65,7 @@ import java.util.Arrays; import java.util.Collections; import java.util.HashMap; +import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; @@ -574,7 +572,7 @@ private ShardFollowNodeTask createShardFollowTask(ReplicationGroup leaderGroup, BiConsumer scheduler = (delay, task) -> threadPool.schedule(task, delay, ThreadPool.Names.GENERIC); AtomicBoolean stopped = new AtomicBoolean(false); - LongSet fetchOperations = new LongHashSet(); + Set fetchOperations = new HashSet<>(); return new ShardFollowNodeTask( 1L, "type", diff --git a/x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/jdbc/JdbcAssert.java b/x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/jdbc/JdbcAssert.java index 77e6b3ac57a55..b94371e35c61a 100644 --- a/x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/jdbc/JdbcAssert.java +++ b/x-pack/plugin/sql/qa/server/src/main/java/org/elasticsearch/xpack/sql/qa/jdbc/JdbcAssert.java @@ -6,8 +6,6 @@ */ package org.elasticsearch.xpack.sql.qa.jdbc; -import com.carrotsearch.hppc.IntObjectHashMap; - import org.apache.logging.log4j.Logger; import org.elasticsearch.geometry.Point; import org.elasticsearch.geometry.utils.StandardValidator; @@ -28,8 +26,10 @@ import java.time.temporal.TemporalAmount; import java.util.ArrayList; import java.util.Calendar; +import java.util.HashMap; import java.util.List; import java.util.Locale; +import java.util.Map; import java.util.TimeZone; import static java.lang.String.format; @@ -56,7 +56,7 @@ public class JdbcAssert { private static final Calendar UTC_CALENDAR = Calendar.getInstance(TimeZone.getTimeZone("UTC"), Locale.ROOT); - private static final IntObjectHashMap SQL_TO_TYPE = new IntObjectHashMap<>(); + private static final Map SQL_TO_TYPE = new HashMap<>(); static { for (EsType type : EsType.values()) {