IDEA: field can be local [LUCENE-7772]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
This one is an IDEA inspection, not Findbugs; it is looking for private fields that are used in one method only, and either their usage starts from assignment, or they are initialized in line and never assigned to after that.
---
Migrated from [LUCENE-7772](https://issues.apache.org/jira/browse/LUCENE-7772) by Daniel Jelinski
Parent: #8801
Attachments: [LUCENE-7772.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-7772/LUCENE-7772.patch)
Contributor guide
Research direction
Start by reviewing the attached LUCENE-7772.patch and parent issue #8801 to locate the IDEA inspection entry point. Verify the inspection identifies private fields used in one method when usage starts with assignment or when an inline initialization is never reassigned; done means those cases are reported without covering FindBugs inspections.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100