atFirstInCurrentDoc is already initialized in base class [LUCENE-7832]
Open
affects-version:7.0
legacy-jira-priority:Trivial
module:core/search
type:bug
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
The variable atFirstInCurrentDoc in NearSpansOrdered is already initialized in base class. The patch just removes the initialization in the derived class.
---
Migrated from [LUCENE-7832](https://issues.apache.org/jira/browse/LUCENE-7832) by Pablo Pita Leira, updated Mar 07 2018
Attachments: [LUCENE-7832.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-7832/LUCENE-7832.patch)
Contributor guide
Research direction
Read NearSpansOrdered and its base class to confirm where atFirstInCurrentDoc is initialized. Remove the redundant derived-class initialization described by the issue and verify the existing Lucene tests still pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Refactor
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100