mirror of https://github.com/apache/lucene.git
Remove unnecessary methods from DocAndScore (#13769)
This commit is contained in:
parent
f0fd51c4d5
commit
8760654faa
|
@ -84,18 +84,5 @@ final class MaxScoreAccumulator {
|
|||
}
|
||||
return cmp;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
DocAndScore result = (DocAndScore) o;
|
||||
return docBase == result.docBase && Float.compare(result.score, score) == 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "DocAndScore{" + "docBase=" + docBase + ", score=" + score + '}';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue