Skip to content

Commit

Permalink
Rename ToolchainCollection.getExecGroups to getExecGroupNames.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 372343218
  • Loading branch information
katre committed Jul 13, 2021
1 parent dc140d0 commit d3d72e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ private ImmutableTable<String, String, String> parseExecProperties(
return ImmutableTable.of();
} else {
return parseExecProperties(
execProperties, toolchainContexts == null ? null : toolchainContexts.getExecGroups());
execProperties, toolchainContexts == null ? null : toolchainContexts.getExecGroupNames());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public ImmutableSet<Label> getResolvedToolchains() {
.collect(toImmutableSet());
}

public ImmutableSet<String> getExecGroups() {
public ImmutableSet<String> getExecGroupNames() {
return getContextMap().keySet();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static boolean isValidGroupName(String execGroupName) {
public boolean containsKey(StarlarkSemantics semantics, Object key) throws EvalException {
String group = castGroupName(key);
return !DEFAULT_EXEC_GROUP_NAME.equals(group)
&& toolchainCollection().getExecGroups().contains(group);
&& toolchainCollection().getExecGroupNames().contains(group);
}

/**
Expand Down Expand Up @@ -104,7 +104,7 @@ public void repr(Printer printer) {
}

private List<String> getScrubbedExecGroups() {
return toolchainCollection().getExecGroups().stream()
return toolchainCollection().getExecGroupNames().stream()
.filter(group -> !DEFAULT_EXEC_GROUP_NAME.equals(group))
.sorted()
.collect(Collectors.toList());
Expand Down

0 comments on commit d3d72e9

Please sign in to comment.