apache / apache/lucene

Remove unneeded default value assignment [LUCENE-10074]

Open
#11,112 6 comments 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 is a spin-off issue from discussion here  where we would like to see if there's any automatic checking mechanism (ecj ?) that can be enabled to detect and warn about unneeded default value assignments in future changes, as well as in the existing code.

---
Migrated from [LUCENE-10074](https://issues.apache.org/jira/browse/LUCENE-10074) by Zach Chen (@zacharymorn), updated Aug 28 2021

Contributor guide

Open the contributing guide

Research direction

Start with the discussion in PR #128 (discussion_r695669643) and the migrated LUCENE-10074 context. Investigate whether ECJ or another automatic check can detect unneeded default-value assignments in existing and future changes. Done means reaching and documenting a clear decision about the checking mechanism and its scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.