Skip to content

Commit

Permalink
fix for JSON formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Howell committed Jun 30, 2020
1 parent 3dcf1c9 commit b7f941b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private static JsonElement createDefaultOutputsJson(ConfiguredTarget target, Gso
List<String> paths;
try {
DefaultInfo provider = target.get(DefaultInfo.PROVIDER);
paths = ((Collection<Artifact>) provider.getFiles().toCollection())
paths = ((Collection<Artifact>) provider.getFiles().toList())
.stream()
.map(Artifact::getExecPathString)
.collect(Collectors.toList());
Expand All @@ -148,7 +148,7 @@ private static JsonElement createDefaultOutputsJson(ConfiguredTarget target, Gso

private static JsonObject createOutputGroupsJsonObject(ConfiguredTarget target, Gson gson) {
JsonObject outputGroups = new JsonObject();
OutputGroupInfo provider = target.get(OutputGroupInfo.SKYLARK_CONSTRUCTOR);
OutputGroupInfo provider = target.get(OutputGroupInfo.STARLARK_CONSTRUCTOR);
if (provider != null) {
for (String group : provider) {
List<String> outputPaths = provider
Expand Down

0 comments on commit b7f941b

Please sign in to comment.