Skip to content

Commit 6e33981

Browse files
committed
Add missing exception to method signature.
1 parent 089975d commit 6e33981

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import ch.cyberduck.core.UrlProvider;
2525
import ch.cyberduck.core.cryptomator.features.*;
2626
import ch.cyberduck.core.exception.BackgroundException;
27+
import ch.cyberduck.core.exception.UnsupportedException;
2728
import ch.cyberduck.core.features.*;
2829
import ch.cyberduck.core.preferences.PreferencesFactory;
2930
import ch.cyberduck.core.shared.DefaultTouchFeature;
@@ -304,7 +305,7 @@ public synchronized void close() {
304305

305306
@Override
306307
@SuppressWarnings("unchecked")
307-
public <T> T getFeature(final Session<?> session, final Class<T> type, final T delegate) {
308+
public <T> T getFeature(final Session<?> session, final Class<T> type, final T delegate) throws UnsupportedException {
308309
if(this.isUnlocked()) {
309310
if(type == ListService.class) {
310311
return (T) new CryptoListService(session, (ListService) delegate, this);

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import ch.cyberduck.core.cryptomator.impl.CryptoFilenameV7Provider;
2929
import ch.cyberduck.core.cryptomator.random.FastSecureRandomProvider;
3030
import ch.cyberduck.core.exception.BackgroundException;
31+
import ch.cyberduck.core.exception.UnsupportedException;
3132
import ch.cyberduck.core.features.Directory;
3233
import ch.cyberduck.core.vault.VaultCredentials;
3334

@@ -365,13 +366,10 @@ public byte[] getRootDirId() {
365366
}
366367

367368
@Override
368-
public <T> T getFeature(final Session<?> session, final Class<T> type, final T delegate) {
369-
369+
public <T> T getFeature(final Session<?> session, final Class<T> type, final T delegate) throws UnsupportedException {
370370
if(type == Directory.class) {
371-
return (T) new CryptoDirectoryUVFFeature(session, (Directory) delegate, this
372-
);
371+
return (T) new CryptoDirectoryUVFFeature(session, (Directory) delegate, this);
373372
}
374-
375373
return super.getFeature(session, type, delegate);
376374
}
377375

0 commit comments

Comments
 (0)