Skip to content

Commit

Permalink
Implement whitelist outgoing edge backsliding
Browse files Browse the repository at this point in the history
    RELNOTES:none
    PiperOrigin-RevId: 241519185
  • Loading branch information
Luca Di Grazia committed Sep 4, 2022
1 parent 1b07f74 commit 872d238
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,6 @@ public static PackageSpecificationProvider fetchPackageSpecificationProvider(
return requireNonNull(packageSpecificationProvider, packageGroup.getLabel().toString());
}

/**
* Returns whether the given label is in the whitelist provided.
*
* @param whitelist the whitelist provided
* @param relevantLabel the label to check for in the whitelist.
*/
public static boolean isAvailableForWhitelist(
TransitiveInfoCollection whitelist, Label relevantLabel) {
PackageSpecificationProvider packageSpecificationProvider =
whitelist.getProvider(PackageSpecificationProvider.class);
return isAvailableFor(packageSpecificationProvider.getPackageSpecifications(), relevantLabel);
}

public static boolean isAvailableFor(
Iterable<PackageGroupContents> packageGroupContents, Label relevantLabel) {
return Streams.stream(packageGroupContents)
Expand Down

0 comments on commit 872d238

Please sign in to comment.