X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fapi%2FAlignCalcWorkerI.java;h=b51b94ec098203f2845b125d736e25eb129b08c8;hb=29288682745147c9da172e5a6f2c21f1f3dbb669;hp=1184853b231d0d54a98cfc864beadd076d76edab;hpb=66e8b9ebe1e4807efba5293fd75bf8bc17234439;p=jalview.git diff --git a/src/jalview/api/AlignCalcWorkerI.java b/src/jalview/api/AlignCalcWorkerI.java index 1184853..b51b94e 100644 --- a/src/jalview/api/AlignCalcWorkerI.java +++ b/src/jalview/api/AlignCalcWorkerI.java @@ -28,7 +28,7 @@ import jalview.datamodel.AlignmentAnnotation; * Interface describing a worker that calculates alignment annotation(s). The * main (re-)calculation should be performed by the inherited run() method. */ -public interface AlignCalcWorkerI extends Callable +public interface AlignCalcWorkerI { /** * Answers true if this worker updates the given annotation (regardless of its @@ -51,22 +51,11 @@ public interface AlignCalcWorkerI extends Callable */ void removeAnnotation(); - - /** - * Default implementation of call which calls run and propagates the - * exception. - */ - @Override - public default Void call() throws Exception - { - run(); - return null; - } - /** * The main calculation happens here + * @throws Throwable */ - public void run() throws Exception; + public void run() throws Throwable; /** * Answers true if the worker should be deleted entirely when its annotation