From dc1fefbd0d217e934106729cf0987797c6ded920 Mon Sep 17 00:00:00 2001 From: Siddhant Deshmukh Date: Fri, 28 Jun 2024 19:09:45 -0700 Subject: [PATCH] Spotless apply Signed-off-by: Siddhant Deshmukh --- .../plugin/insights/core/service/QueryInsightsService.java | 2 +- .../core/service/categorizer/SearchQueryCategorizer.java | 1 - .../service/categorizor/SearchQueryCategorizerTests.java | 5 ++++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java b/plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java index 8dde7ec9588ee..da30d37e557b7 100644 --- a/plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java +++ b/plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/QueryInsightsService.java @@ -16,8 +16,8 @@ import org.opensearch.common.settings.ClusterSettings; import org.opensearch.common.settings.Settings; import org.opensearch.common.unit.TimeValue; -import org.opensearch.plugin.insights.core.service.categorizer.SearchQueryCategorizer; import org.opensearch.plugin.insights.core.exporter.QueryInsightsExporterFactory; +import org.opensearch.plugin.insights.core.service.categorizer.SearchQueryCategorizer; import org.opensearch.plugin.insights.rules.model.MetricType; import org.opensearch.plugin.insights.rules.model.SearchQueryRecord; import org.opensearch.plugin.insights.settings.QueryInsightsSettings; diff --git a/plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/categorizer/SearchQueryCategorizer.java b/plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/categorizer/SearchQueryCategorizer.java index dbbfec69dc600..c7d64e4dff7d5 100644 --- a/plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/categorizer/SearchQueryCategorizer.java +++ b/plugins/query-insights/src/main/java/org/opensearch/plugin/insights/core/service/categorizer/SearchQueryCategorizer.java @@ -21,7 +21,6 @@ import org.opensearch.telemetry.metrics.tags.Tags; import java.util.List; -import java.util.ListIterator; /** * Class to categorize the search queries based on the type and increment the relevant counters. diff --git a/plugins/query-insights/src/test/java/org/opensearch/plugin/insights/core/service/categorizor/SearchQueryCategorizerTests.java b/plugins/query-insights/src/test/java/org/opensearch/plugin/insights/core/service/categorizor/SearchQueryCategorizerTests.java index 6987ebee6b868..3c2618fa7eb94 100644 --- a/plugins/query-insights/src/test/java/org/opensearch/plugin/insights/core/service/categorizor/SearchQueryCategorizerTests.java +++ b/plugins/query-insights/src/test/java/org/opensearch/plugin/insights/core/service/categorizor/SearchQueryCategorizerTests.java @@ -107,7 +107,10 @@ public void testFunctionScoreQuery() { searchQueryCategorizer.categorize(sourceBuilder); - verify(searchQueryCategorizer.getSearchQueryCounters().getCounterByQueryBuilderName("function_score")).add(eq(1.0d), any(Tags.class)); + verify(searchQueryCategorizer.getSearchQueryCounters().getCounterByQueryBuilderName("function_score")).add( + eq(1.0d), + any(Tags.class) + ); } public void testMatchQuery() {