azagrebin commented on a change in pull request #6718: [FLINK-9891] Add
optional hook to shutdown cluster if a session was created in per-job mode in
attached mode
URL: https://github.com/apache/flink/pull/6718#discussion_r219421119
##########
File path:
flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontend.java
##########
@@ -492,11 +505,10 @@ private static void
printJobStatusMessages(List<JobStatusMessage> jobs) {
jobsByState.entrySet().stream()
.sorted(statusComparator)
.map(Map.Entry::getValue).flatMap(List::stream).sorted(startTimeComparator)
- .forEachOrdered(job -> {
- System.out.println(dateFormat.format(new
Date(job.getStartTime()))
- + " : " + job.getJobId() + " : " +
job.getJobName()
- + " (" + job.getJobState() + ")");
- });
+ .forEachOrdered(job ->
Review comment:
yes, redundant brackets in one-line lambda
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services