JAL-3690 List.copyOf() workaround
authorMateusz Waronwy <mmzwarowny@dundee.ac.uk>
Fri, 27 Nov 2020 16:01:14 +0000 (17:01 +0100)
committerMateusz Waronwy <mmzwarowny@dundee.ac.uk>
Fri, 27 Nov 2020 16:01:14 +0000 (17:01 +0100)
src/jalview/workers/AlignCalcManager2.java

index 0057500..0f9b8e5 100644 (file)
@@ -255,7 +255,9 @@ public class AlignCalcManager2 implements AlignCalcManagerI2
   @Override
   public List<AlignCalcWorkerI> getWorkers()
   {
-    return List.copyOf(registered.keySet());
+    List<AlignCalcWorkerI> result = new ArrayList<>(registered.size());
+    result.addAll(registered.keySet());
+    return result;
   }
 
   @Override