File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
cryptomator/src/main/java/ch/cyberduck/core/cryptomator Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 2424import ch .cyberduck .core .UrlProvider ;
2525import ch .cyberduck .core .cryptomator .features .*;
2626import ch .cyberduck .core .exception .BackgroundException ;
27+ import ch .cyberduck .core .exception .UnsupportedException ;
2728import ch .cyberduck .core .features .*;
2829import ch .cyberduck .core .preferences .PreferencesFactory ;
2930import 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 );
Original file line number Diff line number Diff line change 2828import ch .cyberduck .core .cryptomator .impl .CryptoFilenameV7Provider ;
2929import ch .cyberduck .core .cryptomator .random .FastSecureRandomProvider ;
3030import ch .cyberduck .core .exception .BackgroundException ;
31+ import ch .cyberduck .core .exception .UnsupportedException ;
3132import ch .cyberduck .core .features .Directory ;
3233import 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
You can’t perform that action at this time.
0 commit comments