From 7539dc6e115d6c7b12c017b98926cd1fd4cf09cb Mon Sep 17 00:00:00 2001 From: Pedro Luiz Cabral Salomon Prado Date: Thu, 17 Oct 2019 13:49:46 -0300 Subject: [PATCH 1/2] remove comparison of identical values the comparison `tookInMillis == tookInMillis` is always true. --- .../java/org/elasticsearch/client/core/TermVectorsResponse.java | 1 - 1 file changed, 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 8f4232cca6e2c..753b7eec293e2 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 @@ -133,7 +133,6 @@ public boolean equals(Object obj) { && Objects.equals(id, other.id) && docVersion == other.docVersion && found == other.found - && tookInMillis == tookInMillis && Objects.equals(termVectorList, other.termVectorList); } From c414875738bbd1b95a3431f866214d7f959c1e60 Mon Sep 17 00:00:00 2001 From: Pedro Luiz Cabral Salomon Prado Date: Thu, 17 Oct 2019 14:34:12 -0300 Subject: [PATCH 2/2] add comparison between tookInMillis --- .../java/org/elasticsearch/client/core/TermVectorsResponse.java | 1 + 1 file changed, 1 insertion(+) 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 753b7eec293e2..f53f125cbf788 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 @@ -133,6 +133,7 @@ public boolean equals(Object obj) { && Objects.equals(id, other.id) && docVersion == other.docVersion && found == other.found + && tookInMillis == other.tookInMillis && Objects.equals(termVectorList, other.termVectorList); }