Skip to content

Commit

Permalink
ninja: java 11 compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Jan 15, 2024
1 parent e5cc559 commit 0879162
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ public void setErr(@NotNull PrintStream err) {
}

Object result = action.execute();
if (result instanceof ActionResult<?> actionResult) {
if (result instanceof ActionResult) {
ActionResult<?> actionResult = (ActionResult<?>) result;
return new MainResult<>(actionResult.result(), actionResult.exitCode(), actionResult.exitMessage());
}

Expand Down

0 comments on commit 0879162

Please sign in to comment.