Commit 1145eec2 authored by Andy Wilkinson's avatar Andy Wilkinson

Merge pull request #12554 from Johnny Lim

* gh-12554:
  Polish "Use this.out in SummaryProgressReporter.finished()"
  Use this.out in SummaryProgressReporter.finished()
parents a8f366a5 143ec202
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -23,7 +23,6 @@ import org.eclipse.aether.AbstractRepositoryListener; ...@@ -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 { ...@@ -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 { ...@@ -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();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment