Use this.out in SummaryProgressReporter.finished()

Closes gh-12554
pull/12629/head
Johnny Lim 7 years ago committed by Andy Wilkinson
parent a8f366a554
commit 5467005513

@ -23,7 +23,6 @@ import org.eclipse.aether.AbstractRepositoryListener;
import org.eclipse.aether.DefaultRepositorySystemSession; import org.eclipse.aether.DefaultRepositorySystemSession;
import org.eclipse.aether.RepositoryEvent; import org.eclipse.aether.RepositoryEvent;
import org.eclipse.aether.transfer.AbstractTransferListener; import org.eclipse.aether.transfer.AbstractTransferListener;
import org.eclipse.aether.transfer.TransferCancelledException;
import org.eclipse.aether.transfer.TransferEvent; import org.eclipse.aether.transfer.TransferEvent;
/** /**
@ -53,14 +52,12 @@ final class SummaryProgressReporter implements ProgressReporter {
session.setTransferListener(new AbstractTransferListener() { session.setTransferListener(new AbstractTransferListener() {
@Override @Override
public void transferStarted(TransferEvent event) public void transferStarted(TransferEvent event) {
throws TransferCancelledException {
reportProgress(); reportProgress();
} }
@Override @Override
public void transferProgressed(TransferEvent event) public void transferProgressed(TransferEvent event) {
throws TransferCancelledException {
reportProgress(); reportProgress();
} }
@ -95,7 +92,7 @@ final class SummaryProgressReporter implements ProgressReporter {
public void finished() { public void finished() {
if (this.started && !this.finished) { if (this.started && !this.finished) {
this.finished = true; this.finished = true;
System.out.println(""); this.out.println();
} }
} }

Loading…
Cancel
Save