Skip to content

Commit 8e58f21

Browse files
committed
Review change - make instance variables final
1 parent 6eaa5ca commit 8e58f21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/mapper-annotated-text/src/main/java/org/elasticsearch/index/mapper/annotatedtext/AnnotatedTextFieldMapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ public AnnotationToken getAnnotation(int index) {
318318
// When asked to tokenize plain-text versions by the highlighter it tokenizes the
319319
// original markup form in order to inject annotations.
320320
public static final class AnnotatedHighlighterAnalyzer extends AnalyzerWrapper {
321-
private Analyzer delegate;
322-
private HitContext hitContext;
321+
private final Analyzer delegate;
322+
private final HitContext hitContext;
323323
public AnnotatedHighlighterAnalyzer(Analyzer delegate, HitContext hitContext){
324324
super(delegate.getReuseStrategy());
325325
this.delegate = delegate;

0 commit comments

Comments
 (0)