apache / apache/lucene

IDEA: field can be local [LUCENE-7772]

Open
#8,823 1 comment 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Minor type:task
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.