From 54670055135c63785fd1cb44e7b21f1cad6448b9 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Tue, 20 Mar 2018 14:46:08 +0900 Subject: [PATCH 1/2] Use this.out in SummaryProgressReporter.finished() Closes gh-12554 --- .../boot/cli/compiler/grape/SummaryProgressReporter.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/SummaryProgressReporter.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/SummaryProgressReporter.java index d278c36840e..2068e641357 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/SummaryProgressReporter.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/SummaryProgressReporter.java @@ -23,7 +23,6 @@ import org.eclipse.aether.AbstractRepositoryListener; import org.eclipse.aether.DefaultRepositorySystemSession; import org.eclipse.aether.RepositoryEvent; import org.eclipse.aether.transfer.AbstractTransferListener; -import org.eclipse.aether.transfer.TransferCancelledException; import org.eclipse.aether.transfer.TransferEvent; /** @@ -53,14 +52,12 @@ final class SummaryProgressReporter implements ProgressReporter { session.setTransferListener(new AbstractTransferListener() { @Override - public void transferStarted(TransferEvent event) - throws TransferCancelledException { + public void transferStarted(TransferEvent event) { reportProgress(); } @Override - public void transferProgressed(TransferEvent event) - throws TransferCancelledException { + public void transferProgressed(TransferEvent event) { reportProgress(); } @@ -95,7 +92,7 @@ final class SummaryProgressReporter implements ProgressReporter { public void finished() { if (this.started && !this.finished) { this.finished = true; - System.out.println(""); + this.out.println(); } } From 143ec20296fcb42604c66150e8649873563dd9d9 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 23 Mar 2018 17:04:06 -0400 Subject: [PATCH 2/2] Polish "Use this.out in SummaryProgressReporter.finished()" See gh-12554 --- .../boot/cli/compiler/grape/SummaryProgressReporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/SummaryProgressReporter.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/SummaryProgressReporter.java index 2068e641357..1cf7aaa70c5 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/SummaryProgressReporter.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/SummaryProgressReporter.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2016 the original author or authors. + * Copyright 2012-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.