lucene
1918
Anomaly identified by the detector. Please review whether this anomaly corresponds to a misuse.
14
org/apache/lucene/search/SortField.java
equals(Object)
class SortField { /** Returns true if <code>o</code> is equal to this. If a * {@link SortComparatorSource} (deprecated) or {@link * FieldCache.Parser} was provided, it must properly * implement equals (unless a singleton is always used). */ public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof SortField)) return false; final SortField other = (SortField)o; return ( other.field == this.field // field is always interned && other.type == this.type && other.reverse == this.reverse && (other.locale == null ? this.locale == null : other.locale.equals(this.locale)) && (other.factory == null ? this.factory == null : other.factory.equals(this.factory)) && (other.comparatorSource == null ? this.comparatorSource == null : other.comparatorSource.equals(this.comparatorSource)) && (other.parser == null ? this.parser == null : other.parser.equals(this.parser)) ); } }
ES: Comparison of String objects using == or != in org.apache.lucene.search.SortField.equals(Object)
ES_COMPARING_STRINGS_WITH_EQ
same as above