From a38e6850a5024bcc6983191b44abcfbe01463d3a Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Fri, 23 Aug 2019 13:51:00 +0200 Subject: [PATCH] fixed errors after cherry-picking 2 commits --- .../org/elasticsearch/xpack/enrich/EnrichProcessorFactory.java | 1 - .../elasticsearch/xpack/enrich/EnrichPolicyUpdateTests.java | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichProcessorFactory.java b/x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichProcessorFactory.java index 55e97a1b0a8..5194d6a34c4 100644 --- a/x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichProcessorFactory.java +++ b/x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichProcessorFactory.java @@ -15,7 +15,6 @@ import org.elasticsearch.ingest.ConfigurationUtils; import org.elasticsearch.ingest.Processor; import org.elasticsearch.xpack.core.enrich.EnrichPolicy; -import java.util.Collections; import java.util.Map; import java.util.function.Consumer; diff --git a/x-pack/plugin/enrich/src/test/java/org/elasticsearch/xpack/enrich/EnrichPolicyUpdateTests.java b/x-pack/plugin/enrich/src/test/java/org/elasticsearch/xpack/enrich/EnrichPolicyUpdateTests.java index 67ea900a2b1..714a24639d3 100644 --- a/x-pack/plugin/enrich/src/test/java/org/elasticsearch/xpack/enrich/EnrichPolicyUpdateTests.java +++ b/x-pack/plugin/enrich/src/test/java/org/elasticsearch/xpack/enrich/EnrichPolicyUpdateTests.java @@ -19,6 +19,7 @@ import org.elasticsearch.xpack.core.enrich.EnrichPolicy; import org.elasticsearch.xpack.core.enrich.action.ExecuteEnrichPolicyAction; import org.elasticsearch.xpack.core.enrich.action.PutEnrichPolicyAction; +import java.util.Arrays; import java.util.Collection; import java.util.Collections; @@ -29,7 +30,7 @@ public class EnrichPolicyUpdateTests extends ESSingleNodeTestCase { @Override protected Collection> getPlugins() { - return Collections.singleton(LocalStateEnrich.class, ReindexPlugin.class); + return Arrays.asList(LocalStateEnrich.class, ReindexPlugin.class); } public void testUpdatePolicyOnly() {