Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
7.0.1
-
None
-
Ubuntu 14.04.5 LTS
-
Patch Available
Description
Our static code analysis tool has scanned the codebase of Lucene 7.0.1, and find 29 cases, that developers reassigned values to a variable continuously.
For example, the following code from file:
analysis/common/src/java/org/tartarus/snowball/ext/CatalanStemmer.java
cursor=limit - v_5; cursor=limit_backward;
In the above code snippet, the second statement makes the first one redundant and useless.
There are 29 cases in total in the codebase of Lucene.