Skip to content

Commit 46fc7de

Browse files
authored
Minor DocValuesDocReader cleanup (#123619)
The instance members can be private, all final, and SearchLookup is unused.
1 parent 71f72b9 commit 46fc7de

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

server/src/main/java/org/elasticsearch/script/DocValuesDocReader.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,13 @@
2727
*/
2828
public class DocValuesDocReader implements DocReader, LeafReaderContextSupplier {
2929

30-
protected final SearchLookup searchLookup;
31-
3230
// provide access to the leaf context reader for expressions
33-
protected final LeafReaderContext leafReaderContext;
31+
private final LeafReaderContext leafReaderContext;
3432

3533
/** A leaf lookup for the bound segment this proxy will operate on. */
36-
protected LeafSearchLookup leafSearchLookup;
34+
private final LeafSearchLookup leafSearchLookup;
3735

3836
public DocValuesDocReader(SearchLookup searchLookup, LeafReaderContext leafContext) {
39-
this.searchLookup = searchLookup;
4037
this.leafReaderContext = leafContext;
4138
this.leafSearchLookup = searchLookup.getLeafSearchLookup(leafReaderContext);
4239
}

0 commit comments

Comments
 (0)