From eab062dd03638fcdd0491e040778fb8ca030eecd Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 13 May 2022 19:32:53 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../java/com/google/cloud/storage/BucketInfo.java | 14 ++++++-------- .../com/google/cloud/storage/BucketInfoTest.java | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java b/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java index 4eb900f8ce..7bcfb27582 100644 --- a/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java +++ b/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java @@ -701,10 +701,10 @@ public Integer getDaysSinceCustomTime() { } public List getMatchesPrefix() { - return matchesPrefix; + return matchesPrefix; } - public List getMatchesSuffix() { + public List getMatchesSuffix() { return matchesSuffix; } @@ -820,9 +820,8 @@ public Builder setDaysSinceCustomTime(Integer daysSinceCustomTime) { } /** - * Sets the list of prefixes. - * If any prefix matches the beginning of the object’s name, - * this portion of the condition is satisfied for that object. + * Sets the list of prefixes. If any prefix matches the beginning of the object’s name, this + * portion of the condition is satisfied for that object. */ public Builder setMatchesPrefix(List matchesPrefix) { this.matchesPrefix = matchesPrefix; @@ -830,9 +829,8 @@ public Builder setMatchesPrefix(List matchesPrefix) { } /** - * Sets the list of suffixes. - * If any suffix matches the end of the object’s name, - * this portion of the condition is satisfied for that object. + * Sets the list of suffixes. If any suffix matches the end of the object’s name, this + * portion of the condition is satisfied for that object. */ public Builder setMatchesSuffix(List matchesSuffix) { this.matchesSuffix = matchesSuffix; diff --git a/google-cloud-storage/src/test/java/com/google/cloud/storage/BucketInfoTest.java b/google-cloud-storage/src/test/java/com/google/cloud/storage/BucketInfoTest.java index e8009731bf..1d0f533928 100644 --- a/google-cloud-storage/src/test/java/com/google/cloud/storage/BucketInfoTest.java +++ b/google-cloud-storage/src/test/java/com/google/cloud/storage/BucketInfoTest.java @@ -369,7 +369,7 @@ public void testLifecycleRules() { assertEquals(StorageClass.COLDLINE.toString(), lifecycleRule.getAction().getStorageClass()); assertEquals(30, lifecycleRule.getCondition().getDaysSinceCustomTime().intValue()); assertNotNull(lifecycleRule.getCondition().getCustomTimeBefore()); - assertEquals("prefix-",lifecycleRule.getCondition().getMatchesPrefix().get(0)); + assertEquals("prefix-", lifecycleRule.getCondition().getMatchesPrefix().get(0)); assertEquals("-suffix", lifecycleRule.getCondition().getMatchesSuffix().get(0)); Rule unsupportedRule =