File tree 1 file changed +4
-5
lines changed
flink-clients/src/main/java/org/apache/flink/client/cli
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -369,11 +369,10 @@ protected void info(String[] args) throws Exception {
369
369
}
370
370
371
371
String description = program .getDescription ();
372
+ System .out .println ();
372
373
if (description != null ) {
373
- System .out .println ();
374
374
System .out .println (description );
375
375
} else {
376
- System .out .println ();
377
376
System .out .println ("No description provided." );
378
377
}
379
378
} finally {
@@ -463,7 +462,7 @@ private <ClusterID> void listJobs(
463
462
});
464
463
465
464
if (showRunning || showAll ) {
466
- if (runningJobs .size () == 0 ) {
465
+ if (runningJobs .isEmpty () ) {
467
466
System .out .println ("No running jobs." );
468
467
} else {
469
468
System .out .println (
@@ -474,7 +473,7 @@ private <ClusterID> void listJobs(
474
473
}
475
474
}
476
475
if (showScheduled || showAll ) {
477
- if (scheduledJobs .size () == 0 ) {
476
+ if (scheduledJobs .isEmpty () ) {
478
477
System .out .println ("No scheduled jobs." );
479
478
} else {
480
479
System .out .println (
@@ -485,7 +484,7 @@ private <ClusterID> void listJobs(
485
484
}
486
485
}
487
486
if (showAll ) {
488
- if (terminatedJobs .size () != 0 ) {
487
+ if (! terminatedJobs .isEmpty () ) {
489
488
System .out .println (
490
489
"---------------------- Terminated Jobs -----------------------" );
491
490
printJobStatusMessages (terminatedJobs );
You can’t perform that action at this time.
0 commit comments