Skip to content

Commit 1145eec

Browse files
committed
Merge pull request #12554 from Johnny Lim
* gh-12554: Polish "Use this.out in SummaryProgressReporter.finished()" Use this.out in SummaryProgressReporter.finished()
2 parents a8f366a + 143ec20 commit 1145eec

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/SummaryProgressReporter.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2016 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,7 +23,6 @@
2323
import org.eclipse.aether.DefaultRepositorySystemSession;
2424
import org.eclipse.aether.RepositoryEvent;
2525
import org.eclipse.aether.transfer.AbstractTransferListener;
26-
import org.eclipse.aether.transfer.TransferCancelledException;
2726
import org.eclipse.aether.transfer.TransferEvent;
2827

2928
/**
@@ -53,14 +52,12 @@ final class SummaryProgressReporter implements ProgressReporter {
5352
session.setTransferListener(new AbstractTransferListener() {
5453

5554
@Override
56-
public void transferStarted(TransferEvent event)
57-
throws TransferCancelledException {
55+
public void transferStarted(TransferEvent event) {
5856
reportProgress();
5957
}
6058

6159
@Override
62-
public void transferProgressed(TransferEvent event)
63-
throws TransferCancelledException {
60+
public void transferProgressed(TransferEvent event) {
6461
reportProgress();
6562
}
6663

@@ -95,7 +92,7 @@ else if (System.currentTimeMillis()
9592
public void finished() {
9693
if (this.started && !this.finished) {
9794
this.finished = true;
98-
System.out.println("");
95+
this.out.println();
9996
}
10097
}
10198

0 commit comments

Comments
 (0)