JAL-2323 revert to thread-safe iteration over array field
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 17 Nov 2016 16:08:59 +0000 (16:08 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 17 Nov 2016 16:08:59 +0000 (16:08 +0000)
src/jalview/renderer/seqfeatures/FeatureRenderer.java

index 1ccb673..9e0089f 100644 (file)
@@ -330,8 +330,9 @@ public class FeatureRenderer extends FeatureRendererModel
     }
 
     sfSize = lastSequenceFeatures.length;
-    for (String type : renderOrder)
+    for (int renderIndex = 0; renderIndex < renderOrder.length; renderIndex++)
     {
+      String type = renderOrder[renderIndex];
       if (!showFeatureOfType(type))
       {
         continue;