Skip to content

Commit

Permalink
fix incorrect comparison (elastic#48208)
Browse files Browse the repository at this point in the history
* remove comparison of identical values

the comparison `tookInMillis == tookInMillis` is always true.

* add comparison between tookInMillis
  • Loading branch information
pedroprado010 authored and dakrone committed Oct 21, 2019
1 parent ed224d9 commit 62392bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public boolean equals(Object obj) {
&& Objects.equals(id, other.id)
&& docVersion == other.docVersion
&& found == other.found
&& tookInMillis == tookInMillis
&& tookInMillis == other.tookInMillis
&& Objects.equals(termVectorList, other.termVectorList);
}

Expand Down

0 comments on commit 62392bb

Please sign in to comment.