diff options
author | Olivier Lamy <olamy@apache.org> | 2014-04-17 10:46:06 +1000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-04-17 10:46:06 +1000 |
commit | 2132965397ca7d93a66c2eea3dfce98ca377268d (patch) | |
tree | 7062be19f897e4664b78190f864b76b8a29cbd30 /archiva-modules/archiva-scheduler | |
parent | 0a21a1167f0688c014b0f28b6af9cf5408a687ab (diff) | |
download | archiva-2132965397ca7d93a66c2eea3dfce98ca377268d.tar.gz archiva-2132965397ca7d93a66c2eea3dfce98ca377268d.zip |
more code simplification with 1.7 features
Diffstat (limited to 'archiva-modules/archiva-scheduler')
-rw-r--r-- | archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTask.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTask.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTask.java index 4ae8d222c..6a9a39624 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTask.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/main/java/org/apache/archiva/scheduler/indexing/DownloadRemoteIndexTask.java @@ -50,7 +50,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; -import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; @@ -352,11 +351,7 @@ public class DownloadRemoteIndexTask wagon.get( addParameters( name, this.remoteRepository ), file ); return Files.newInputStream( file.toPath() ); } - catch ( AuthorizationException e ) - { - throw new IOException( e.getMessage(), e ); - } - catch ( TransferFailedException e ) + catch ( AuthorizationException | TransferFailedException e ) { throw new IOException( e.getMessage(), e ); } |