Skip to content

Commit fc27e25

Browse files
pedroprado010dakrone
authored andcommitted
fix incorrect comparison (elastic#48208)
* remove comparison of identical values the comparison `tookInMillis == tookInMillis` is always true. * add comparison between tookInMillis
1 parent 4b285c4 commit fc27e25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/rest-high-level/src/main/java/org/elasticsearch/client/core/TermVectorsResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public boolean equals(Object obj) {
149149
&& Objects.equals(id, other.id)
150150
&& docVersion == other.docVersion
151151
&& found == other.found
152-
&& tookInMillis == tookInMillis
152+
&& tookInMillis == other.tookInMillis
153153
&& Objects.equals(termVectorList, other.termVectorList);
154154
}
155155

0 commit comments

Comments
 (0)