Skip to content

Commit 00f17ff

Browse files
authored
[7.4] fix incorrect comparison (#48208) (#48305)
* remove comparison of identical values the comparison `tookInMillis == tookInMillis` is always true. * add comparison between tookInMillis
1 parent 13992ce commit 00f17ff

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)