lucene
1918
Anomaly identified by the detector. Please review whether this anomaly corresponds to a misuse.
11
org/apache/lucene/search/PrefixTermEnum.java
termCompare(Term)
class PrefixTermEnum { protected boolean termCompare(Term term) { if (term.field() == prefix.field() && term.text().startsWith(prefix.text())) { return true; } endEnum = true; return false; } }
ES: Comparison of String objects using == or != in org.apache.lucene.search.PrefixTermEnum.termCompare(Term)
ES_COMPARING_STRINGS_WITH_EQ
equals logic