Skip to content

Commit cc0c876

Browse files
authored
fix incorrect comparison (#48208) (#48303)
* remove comparison of identical values the comparison `tookInMillis == tookInMillis` is always true. * add comparison between tookInMillis
1 parent dc08fea commit cc0c876

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

Lines changed: 1 addition & 1 deletion
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)