Skip to content

Commit e077a91

Browse files
committed
Formatting.
1 parent 2aefd73 commit e077a91

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

core/src/main/java/ch/cyberduck/core/worker/AbstractTransferWorker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ protected enum Connection {
147147
/**
148148
* Release session from pool for transfer
149149
*/
150-
protected abstract void release(Session session, Connection type, BackgroundException failure);
150+
protected abstract void release(Session<?> session, Connection type, BackgroundException failure);
151151

152152
@Override
153153
public Boolean initialize() {
@@ -200,7 +200,7 @@ public void message(final String message) {
200200
for(TransferItem next : transfer.getRoots()) {
201201
// Check if parent directory is found in set to determine status
202202
this.prepare(next.remote, next.local, new TransferStatus()
203-
.setExists(!transfer.getRoots().stream().anyMatch(f -> next.remote.isChild(f.remote))), action);
203+
.setExists(transfer.getRoots().stream().noneMatch(f -> next.remote.isChild(f.remote))), action);
204204
}
205205
this.await();
206206
meter.reset();

core/src/main/java/ch/cyberduck/core/worker/ConcurrentTransferWorker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public boolean isRunning() {
129129
}
130130

131131
@Override
132-
protected void release(final Session session, final Connection type, final BackgroundException failure) {
132+
protected void release(final Session<?> session, final Connection type, final BackgroundException failure) {
133133
switch(type) {
134134
case source:
135135
source.release(session, failure);
@@ -176,7 +176,7 @@ public void await() throws BackgroundException {
176176

177177
@Override
178178
protected void shutdown() {
179-
// Always shutdown gracefully allowing the threads to return after checking transfer status
179+
// Always shutdown gracefully, allowing the threads to return after checking transfer status
180180
pool.shutdown(true);
181181
}
182182

core/src/main/java/ch/cyberduck/core/worker/SingleTransferWorker.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737

3838
public class SingleTransferWorker extends AbstractTransferWorker {
3939

40-
private final Session source;
41-
private final Session destination;
40+
private final Session<?> source;
41+
private final Session<?> destination;
4242

43-
public SingleTransferWorker(final Session source, final Session destination, final Transfer transfer, final TransferOptions options,
43+
public SingleTransferWorker(final Session<?> source, final Session<?> destination, final Transfer transfer, final TransferOptions options,
4444
final TransferSpeedometer meter, final TransferPrompt prompt,
4545
final TransferErrorCallback error,
4646
final ProgressListener listener, final StreamListener streamListener,
@@ -51,7 +51,7 @@ public SingleTransferWorker(final Session source, final Session destination, fin
5151
}
5252

5353
@Override
54-
public Session borrow(final Connection type) {
54+
public Session<?> borrow(final Connection type) {
5555
switch(type) {
5656
case source:
5757
return source;
@@ -62,7 +62,7 @@ public Session borrow(final Connection type) {
6262
}
6363

6464
@Override
65-
protected void release(final Session session, final Connection type, final BackgroundException failure) {
65+
protected void release(final Session<?> session, final Connection type, final BackgroundException failure) {
6666
//
6767
}
6868

0 commit comments

Comments
 (0)