Author: sebb
Date: Sun Feb 1 19:44:43 2015
New Revision: 1656357
URL: http://svn.apache.org/r1656357
Log:
Generics
Modified:
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ParallelScatterZipCreator.java
Modified:
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ParallelScatterZipCreator.java
URL:
http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ParallelScatterZipCreator.java?rev=1656357&r1=1656356&r2=1656357&view=diff
==============================================================================
---
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ParallelScatterZipCreator.java
(original)
+++
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ParallelScatterZipCreator.java
Sun Feb 1 19:44:43 2015
@@ -55,7 +55,7 @@ public class ParallelScatterZipCreator {
private final List<ScatterZipOutputStream> streams = synchronizedList(new
ArrayList<ScatterZipOutputStream>());
private final ExecutorService es;
private final ScatterGatherBackingStoreSupplier backingStoreSupplier;
- private final List<Future> futures = new ArrayList<Future>();
+ private final List<Future<Object>> futures = new
ArrayList<Future<Object>>();
private final long startedAt = System.currentTimeMillis();
private long compressionDoneAt = 0;
@@ -195,7 +195,7 @@ public class ParallelScatterZipCreator {
throws IOException, InterruptedException, ExecutionException {
// Make sure we catch any exceptions from parallel phase
- for (Future future : futures) {
+ for (Future<?> future : futures) {
future.get();
}