JAL-2001 - note about possible side effect on JalviewLite.selectIn due to refactored...
authorJim Procter <jprocter@issues.jalview.org>
Mon, 4 Apr 2016 14:48:42 +0000 (15:48 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 4 Apr 2016 14:48:42 +0000 (15:48 +0100)
src/jalview/bin/JalviewLite.java

index ae84ba5..095cfd3 100644 (file)
@@ -459,6 +459,9 @@ public class JalviewLite extends Applet implements
         if (csel != null)
         {
           List<Integer> cs = csel.getSelected();
+          // note - the following actually clears cs as well, since
+          // csel.getSelected returns a reference. Need to check if we need to
+          // have a concurrentModification exception thrown here
           csel.clear();
           for (Integer selectedCol : cs)
           {