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 =