Skip to content

Commit

Permalink
Add @SafeVarargs to Predicates.and(Predicate<? super T>...).
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=161877904
  • Loading branch information
yiuyuho authored and cpovirk committed Jul 14, 2017
1 parent 68c8619 commit 1d7f652
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions android/guava/src/com/google/common/base/Predicates.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public static <T> Predicate<T> and(Iterable<? extends Predicate<? super T>> comp
* components} is empty, the returned predicate will always evaluate to {@code
* true}.
*/
@SafeVarargs
public static <T> Predicate<T> and(Predicate<? super T>... components) {
return new AndPredicate<T>(defensiveCopy(components));
}
Expand Down
1 change: 1 addition & 0 deletions guava/src/com/google/common/base/Predicates.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public static <T> Predicate<T> and(Iterable<? extends Predicate<? super T>> comp
* components} is empty, the returned predicate will always evaluate to {@code
* true}.
*/
@SafeVarargs
public static <T> Predicate<T> and(Predicate<? super T>... components) {
return new AndPredicate<T>(defensiveCopy(components));
}
Expand Down

0 comments on commit 1d7f652

Please sign in to comment.