From b529953ea44f18590f19349c95001871182260bb Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Tue, 22 Aug 2023 22:09:53 +1000 Subject: [PATCH] fix format violations Signed-off-by: Russ Cam --- .../analysis/common/CommonAnalysisModulePlugin.java | 5 +---- .../common/DelimitedTermFrequencyTokenFilterFactory.java | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/analysis-common/src/main/java/org/opensearch/analysis/common/CommonAnalysisModulePlugin.java b/modules/analysis-common/src/main/java/org/opensearch/analysis/common/CommonAnalysisModulePlugin.java index 8e68874a2c049..230307012e7ad 100644 --- a/modules/analysis-common/src/main/java/org/opensearch/analysis/common/CommonAnalysisModulePlugin.java +++ b/modules/analysis-common/src/main/java/org/opensearch/analysis/common/CommonAnalysisModulePlugin.java @@ -506,10 +506,7 @@ public List getPreConfiguredTokenFilters() { PreConfiguredTokenFilter.singleton( "delimited_termfreq", false, - input -> new DelimitedTermFrequencyTokenFilter( - input, - DelimitedTermFrequencyTokenFilterFactory.DEFAULT_DELIMITER - ) + input -> new DelimitedTermFrequencyTokenFilter(input, DelimitedTermFrequencyTokenFilterFactory.DEFAULT_DELIMITER) ) ); filters.add(PreConfiguredTokenFilter.singleton("dutch_stem", false, input -> new SnowballFilter(input, new DutchStemmer()))); diff --git a/modules/analysis-common/src/main/java/org/opensearch/analysis/common/DelimitedTermFrequencyTokenFilterFactory.java b/modules/analysis-common/src/main/java/org/opensearch/analysis/common/DelimitedTermFrequencyTokenFilterFactory.java index a35515c9694d3..81f52a3badacd 100644 --- a/modules/analysis-common/src/main/java/org/opensearch/analysis/common/DelimitedTermFrequencyTokenFilterFactory.java +++ b/modules/analysis-common/src/main/java/org/opensearch/analysis/common/DelimitedTermFrequencyTokenFilterFactory.java @@ -43,4 +43,3 @@ private static char parseDelimiter(Settings settings) throws IllegalArgumentExce ); } } -