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 authored and copybara-github committed May 6, 2021
1 parent 64534e2 commit 9b18d95
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 @@ -1414,7 +1414,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 9b18d95

Please sign in to comment.