You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by cp...@apache.org on 2023/05/12 13:43:47 UTC
[solr] branch branch_9x updated: NO JIRA: modules/ltr - mark FieldValueFeatureScorer.context private and final (#1640)
This is an automated email from the ASF dual-hosted git repository.
cpoerschke pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new 1b8bdc5260a NO JIRA: modules/ltr - mark FieldValueFeatureScorer.context private and final (#1640)
1b8bdc5260a is described below
commit 1b8bdc5260aefd1f830c90f725a43d67a8c2206a
Author: Christine Poerschke <cp...@apache.org>
AuthorDate: Fri May 12 14:34:20 2023 +0100
NO JIRA: modules/ltr - mark FieldValueFeatureScorer.context private and final (#1640)
(cherry picked from commit 7a31a1e23f6034c14639d7a208c5aaec64608cfd)
---
.../ltr/src/java/org/apache/solr/ltr/feature/FieldValueFeature.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/solr/modules/ltr/src/java/org/apache/solr/ltr/feature/FieldValueFeature.java b/solr/modules/ltr/src/java/org/apache/solr/ltr/feature/FieldValueFeature.java
index 87c47be73b8..65980018067 100644
--- a/solr/modules/ltr/src/java/org/apache/solr/ltr/feature/FieldValueFeature.java
+++ b/solr/modules/ltr/src/java/org/apache/solr/ltr/feature/FieldValueFeature.java
@@ -165,7 +165,7 @@ public class FieldValueFeature extends Feature {
/** A FeatureScorer that reads the stored value for a field */
public class FieldValueFeatureScorer extends FeatureScorer {
- LeafReaderContext context = null;
+ private final LeafReaderContext context;
public FieldValueFeatureScorer(
FeatureWeight weight, LeafReaderContext context, DocIdSetIterator itr) {