Skip to content

Commit b2b9a59

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

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
@@ -133,7 +133,7 @@ public boolean equals(Object obj) {
133133
&& Objects.equals(id, other.id)
134134
&& docVersion == other.docVersion
135135
&& found == other.found
136-
&& tookInMillis == tookInMillis
136+
&& tookInMillis == other.tookInMillis
137137
&& Objects.equals(termVectorList, other.termVectorList);
138138
}
139139

0 commit comments

Comments
 (0)