From fa55072f7281506eb2c234d66d3afc5117e2f75b Mon Sep 17 00:00:00 2001 From: Aurelien FOUCRET Date: Thu, 18 Jul 2024 16:16:18 +0200 Subject: [PATCH] Lint --- .../src/main/java/org/elasticsearch/script/DocReader.java | 1 - .../main/java/org/elasticsearch/script/TermStatsReader.java | 1 - .../java/org/elasticsearch/search/lookup/SearchLookup.java | 6 ++---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/script/DocReader.java b/server/src/main/java/org/elasticsearch/script/DocReader.java index a7db594b4f809..061c7033afa80 100644 --- a/server/src/main/java/org/elasticsearch/script/DocReader.java +++ b/server/src/main/java/org/elasticsearch/script/DocReader.java @@ -33,7 +33,6 @@ public interface DocReader { void setDocument(int docID); // Compatibility APIS - /** Old-style doc access for contexts that map some doc contents in params */ Map docAsMap(); diff --git a/server/src/main/java/org/elasticsearch/script/TermStatsReader.java b/server/src/main/java/org/elasticsearch/script/TermStatsReader.java index de1b10ff02767..a769e4e9716dd 100644 --- a/server/src/main/java/org/elasticsearch/script/TermStatsReader.java +++ b/server/src/main/java/org/elasticsearch/script/TermStatsReader.java @@ -25,7 +25,6 @@ import java.util.Set; import java.util.function.Supplier; - /** * Access the term statistics of the children query of a script_score query. */ diff --git a/server/src/main/java/org/elasticsearch/search/lookup/SearchLookup.java b/server/src/main/java/org/elasticsearch/search/lookup/SearchLookup.java index 5ed40e509976a..a9e667415872e 100644 --- a/server/src/main/java/org/elasticsearch/search/lookup/SearchLookup.java +++ b/server/src/main/java/org/elasticsearch/search/lookup/SearchLookup.java @@ -54,7 +54,6 @@ public class SearchLookup implements SourceProvider { /** * Create a new SearchLookup, using the default stored fields provider - * * @param fieldTypeLookup defines how to look up field types * @param fieldDataLookup defines how to look up field data * @param sourceProvider defines how to look up the source @@ -69,7 +68,6 @@ public SearchLookup( /** * Create a new SearchLookup, using the default stored fields provider - * * @param fieldTypeLookup defines how to look up field types * @param fieldDataLookup defines how to look up field data * @param sourceProvider defines how to look up the source @@ -94,7 +92,7 @@ public SearchLookup( * and prevents resolving fields that depend on more than {@link #MAX_FIELD_CHAIN_DEPTH} fields. * * @param searchLookup the existing lookup to create a new one from - * @param fieldChain the chain of fields that required the field currently being loaded + * @param fieldChain the chain of fields that required the field currently being loaded */ private SearchLookup(SearchLookup searchLookup, Set fieldChain) { this.fieldChain = Collections.unmodifiableSet(fieldChain); @@ -111,7 +109,7 @@ private SearchLookup(SearchLookup searchLookup, Set fieldChain) { * @param field the field being referred to, for which fielddata needs to be loaded * @return the new lookup * @throws IllegalArgumentException if a cycle is detected in the fields required to build doc values, or if the field - * being resolved depends on more than {@link #MAX_FIELD_CHAIN_DEPTH} + * being resolved depends on more than {@link #MAX_FIELD_CHAIN_DEPTH} */ public final SearchLookup forkAndTrackFieldReferences(String field) { Objects.requireNonNull(field, "field cannot be null");