From 9273cb72bc6051fbc975b7fd8ef4d96f9856131f Mon Sep 17 00:00:00 2001 From: Lee Hinman Date: Mon, 21 Oct 2019 09:16:07 -0600 Subject: [PATCH] [7.5] fix incorrect comparison (#48208) (#48304) * 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); }