From 332424384009b513e962999f4955af032f039fdb Mon Sep 17 00:00:00 2001 From: Marco Ziccardi Date: Mon, 14 Dec 2015 22:44:14 +0100 Subject: [PATCH] Use primitive comparison in QueryResult.equals --- .../main/java/com/google/gcloud/bigquery/QueryResult.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/QueryResult.java b/gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/QueryResult.java index a3253e1fa171..8e62921a48b4 100644 --- a/gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/QueryResult.java +++ b/gcloud-java-bigquery/src/main/java/com/google/gcloud/bigquery/QueryResult.java @@ -160,9 +160,9 @@ public boolean equals(Object obj) { return Objects.equals(nextPageCursor(), response.nextPageCursor()) && Objects.equals(values(), response.values()) && Objects.equals(schema, response.schema) - && Objects.equals(totalRows, response.totalRows) - && Objects.equals(totalBytesProcessed, response.totalBytesProcessed) - && Objects.equals(cacheHit, response.cacheHit); + && totalRows == response.totalRows + && totalBytesProcessed == response.totalBytesProcessed + && cacheHit == response.cacheHit; } static Builder builder() {