apache / apache/lucene

Ignored statement [LUCENE-6620]

Open
#7,678 1 comment 0 reactions 0 assignees View on GitHub
affects-version:6.0 legacy-jira-priority:Trivial module:analysis type:bug
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

```Java
public static void main(java.lang.String[] args) throws Exception {
...
args[0].toUpperCase(Locale.ROOT);
...
}
```

In the file `Compile.java`, the argument string does not get capitalized.

Is this statement redundant?

---
Migrated from [LUCENE-6620](https://issues.apache.org/jira/browse/LUCENE-6620) by Rishabh Patel, updated May 09 2016

Contributor guide

Open the contributing guide

Research direction

Open Compile.java and start at its main method, inspecting the use of args[0].toUpperCase(Locale.ROOT) and whether the returned value is used. Done means the statement's redundancy is established and any resulting change preserves the intended argument behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.