Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@

package com.google.cloud;

import static com.google.common.base.Predicates.in;
import static com.google.common.base.Predicates.not;

import com.google.api.core.BetaApi;
import com.google.auto.value.AutoValue;
import com.google.common.base.Predicate;
Expand Down Expand Up @@ -101,7 +98,7 @@ public Builder addMembers(String member, String... moreMembers) {
* @throws NullPointerException if a member is null.
*/
public Builder removeMembers(String... members) {
Predicate<String> selectMembersNotInList = not(in(Arrays.asList(members)));
Predicate<String> selectMembersNotInList = e -> !Arrays.asList(members).contains(e);
Collection<String> filter = Collections2.filter(getMembers(), selectMembersNotInList);
setMembers(filter);
return this;
Expand Down
Loading