JAL-3690 partially reworked AlignCalcManager
[jalview.git] / src / jalview / api / AlignCalcWorkerI.java
index 1184853..b51b94e 100644 (file)
@@ -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<Void>
+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>
    */
   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