Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Dec 18, 2018
1 parent b8dc032 commit 37d0ea0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,11 @@ private Stream<Execution> finishedExecutions() {
private Stream<Execution> finishedExecutionsByStatus(Status status) {
Preconditions.notNull(status, "Status must not be null");
return finishedExecutions()//
.filter(execution -> execution.getTerminationInfo().getExecutionResult().getStatus().equals(status));
.filter(execution -> execution.getTerminationInfo().getExecutionResult().getStatus() == status);
}

private Stream<Execution> executionsByTerminationInfo(Predicate<TerminationInfo> predicate) {
return this.executions.stream().filter(execution -> predicate.test(execution.getTerminationInfo()));
return filter(execution -> predicate.test(execution.getTerminationInfo()));
}

/**
Expand Down

0 comments on commit 37d0ea0

Please sign in to comment.