Skip to content

Commit 1d6d8dc

Browse files
committed
Convert to interface to allow usage as lambda.
1 parent 87be670 commit 1d6d8dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/main/java/ch/cyberduck/core/threading/BackgroundExceptionCallable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
import java.util.concurrent.Callable;
2121

22-
public abstract class BackgroundExceptionCallable<T> implements Callable<T> {
22+
public interface BackgroundExceptionCallable<T> extends Callable<T> {
2323
@Override
24-
public abstract T call() throws BackgroundException;
24+
T call() throws BackgroundException;
2525
}

s3/src/main/java/ch/cyberduck/core/s3/S3PathStyleFallbackAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.apache.logging.log4j.LogManager;
2424
import org.apache.logging.log4j.Logger;
2525

26-
public class S3PathStyleFallbackAdapter<R> extends BackgroundExceptionCallable<R> {
26+
public class S3PathStyleFallbackAdapter<R> implements BackgroundExceptionCallable<R> {
2727
private static final Logger log = LogManager.getLogger(S3PathStyleFallbackAdapter.class);
2828

2929
private final RequestEntityRestStorageService client;

0 commit comments

Comments
 (0)