lucene
1918
Anomaly identified by the detector. Please review whether this anomaly corresponds to a misuse.
8
org/apache/lucene/search/FieldSortedHitQueue$9.java
compare(ScoreDoc, ScoreDoc)
class FieldSortedHitQueue { public final int compare(final ScoreDoc i, final ScoreDoc j) { String is = index[i.doc]; String js = index[j.doc]; if (is == js) { return 0; } else if (is == null) { return -1; } else if (js == null) { return 1; } else { return collator.compare(is, js); } } }
ES: Comparison of String objects using == or != in org.apache.lucene.search.FieldSortedHitQueue$9.compare(ScoreDoc, ScoreDoc)
ES_COMPARING_STRINGS_WITH_EQ
equals logic