Skip to content

Commit 1d7f652

Browse files
yiuyuhocpovirk
authored andcommitted
Add @SafeVarargs to Predicates.and(Predicate<? super T>...).
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=161877904
1 parent 68c8619 commit 1d7f652

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

android/guava/src/com/google/common/base/Predicates.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ public static <T> Predicate<T> and(Iterable<? extends Predicate<? super T>> comp
108108
* components} is empty, the returned predicate will always evaluate to {@code
109109
* true}.
110110
*/
111+
@SafeVarargs
111112
public static <T> Predicate<T> and(Predicate<? super T>... components) {
112113
return new AndPredicate<T>(defensiveCopy(components));
113114
}

guava/src/com/google/common/base/Predicates.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ public static <T> Predicate<T> and(Iterable<? extends Predicate<? super T>> comp
108108
* components} is empty, the returned predicate will always evaluate to {@code
109109
* true}.
110110
*/
111+
@SafeVarargs
111112
public static <T> Predicate<T> and(Predicate<? super T>... components) {
112113
return new AndPredicate<T>(defensiveCopy(components));
113114
}

0 commit comments

Comments
 (0)