From 00f17fff6d1da9aa1cc85c853df021c07b858361 Mon Sep 17 00:00:00 2001 From: Lee Hinman Date: Mon, 21 Oct 2019 09:49:55 -0600 Subject: [PATCH] [7.4] fix incorrect comparison (#48208) (#48305) * remove comparison of identical values the comparison `tookInMillis == tookInMillis` is always true. * add comparison between tookInMillis --- .../java/org/elasticsearch/client/core/TermVectorsResponse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/rest-high-level/src/main/java/org/elasticsearch/client/core/TermVectorsResponse.java b/client/rest-high-level/src/main/java/org/elasticsearch/client/core/TermVectorsResponse.java index eef76ed7cb043..ca81350290536 100644 --- a/client/rest-high-level/src/main/java/org/elasticsearch/client/core/TermVectorsResponse.java +++ b/client/rest-high-level/src/main/java/org/elasticsearch/client/core/TermVectorsResponse.java @@ -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); }