@@ -701,10 +701,10 @@ public Integer getDaysSinceCustomTime() {
701
701
}
702
702
703
703
public List <String > getMatchesPrefix () {
704
- return matchesPrefix ;
704
+ return matchesPrefix ;
705
705
}
706
706
707
- public List <String > getMatchesSuffix () {
707
+ public List <String > getMatchesSuffix () {
708
708
return matchesSuffix ;
709
709
}
710
710
@@ -820,22 +820,20 @@ public Builder setDaysSinceCustomTime(Integer daysSinceCustomTime) {
820
820
}
821
821
822
822
/**
823
- * Sets the list of prefixes.
824
- * If any prefix matches the beginning of the object’s name,
825
- * this portion of the condition is satisfied for that object.
823
+ * Sets the list of prefixes. If any prefix matches the beginning of the object’s name, this
824
+ * portion of the condition is satisfied for that object.
826
825
*/
827
826
public Builder setMatchesPrefix (List <String > matchesPrefix ) {
828
- this .matchesPrefix = matchesPrefix ;
827
+ this .matchesPrefix = matchesPrefix != null ? ImmutableList . copyOf ( matchesPrefix ) : null ;
829
828
return this ;
830
829
}
831
830
832
831
/**
833
- * Sets the list of suffixes.
834
- * If any suffix matches the end of the object’s name,
835
- * this portion of the condition is satisfied for that object.
832
+ * Sets the list of suffixes. If any suffix matches the end of the object’s name, this
833
+ * portion of the condition is satisfied for that object.
836
834
*/
837
835
public Builder setMatchesSuffix (List <String > matchesSuffix ) {
838
- this .matchesSuffix = matchesSuffix ;
836
+ this .matchesSuffix = matchesSuffix != null ? ImmutableList . copyOf ( matchesSuffix ) : null ;
839
837
return this ;
840
838
}
841
839
0 commit comments