Skip to content

Commit

Permalink
[7.5] fix incorrect comparison (#48208) (#48304)
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
dakrone authored Oct 21, 2019
1 parent ed224d9 commit 9273cb7
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 9273cb7

Please sign in to comment.