Skip to content

Commit 769aedf

Browse files
committed
Use interface.
1 parent af20881 commit 769aedf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cryptomator/src/main/java/ch/cyberduck/core/cryptomator/CryptoTransferStatus.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
*/
1717

1818
import ch.cyberduck.core.PathAttributes;
19+
import ch.cyberduck.core.exception.BackgroundException;
20+
import ch.cyberduck.core.features.Vault;
1921
import ch.cyberduck.core.io.StreamCancelation;
2022
import ch.cyberduck.core.io.StreamProgress;
2123
import ch.cyberduck.core.transfer.ProxyTransferStatus;
@@ -27,9 +29,9 @@
2729
public class CryptoTransferStatus extends ProxyTransferStatus implements StreamCancelation, StreamProgress {
2830
private static final Logger log = LogManager.getLogger(CryptoTransferStatus.class);
2931

30-
private final AbstractVault vault;
32+
private final Vault vault;
3133

32-
public CryptoTransferStatus(final AbstractVault vault, final TransferStatus proxy) {
34+
public CryptoTransferStatus(final Vault vault, final TransferStatus proxy) {
3335
super(proxy);
3436
this.vault = vault;
3537
this.setLength(vault.toCiphertextSize(proxy.getOffset(), proxy.getLength()))
@@ -44,7 +46,7 @@ public TransferStatus setResponse(final PathAttributes attributes) {
4446
attributes.setSize(vault.toCleartextSize(0L, attributes.getSize()));
4547
super.setResponse(attributes);
4648
}
47-
catch(CryptoInvalidFilesizeException e) {
49+
catch(BackgroundException e) {
4850
log.warn("Failure {} translating file size from response {}", e, attributes);
4951
}
5052
return this;

0 commit comments

Comments
 (0)