From ca28e2d68901b6c9332f97c7985aaca7f4486e29 Mon Sep 17 00:00:00 2001 From: Stephanie Wang Date: Mon, 7 Mar 2022 12:33:03 -0500 Subject: [PATCH] fix: add missing equality check for targetTypes in DatasetAclEntity (#1866) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: add missing equality check for targetTypes in DatasetAclEntity * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../src/main/java/com/google/cloud/bigquery/Acl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Acl.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Acl.java index 115e001bd..3fad68920 100644 --- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Acl.java +++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Acl.java @@ -193,7 +193,8 @@ public boolean equals(Object obj) { } DatasetAclEntity datasetAclEntity = (DatasetAclEntity) obj; return Objects.equals(getType(), datasetAclEntity.getType()) - && Objects.equals(id, datasetAclEntity.id); + && Objects.equals(id, datasetAclEntity.id) + && Objects.equals(targetTypes, datasetAclEntity.targetTypes); } @Override