From: gmungoc Date: Thu, 17 Nov 2016 16:08:59 +0000 (+0000) Subject: JAL-2323 revert to thread-safe iteration over array field X-Git-Tag: Release_2_10_1~10^2~1^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2466e94aa67b0559bd5c4c6e17d60b6fac3cb756;p=jalview.git JAL-2323 revert to thread-safe iteration over array field --- diff --git a/src/jalview/renderer/seqfeatures/FeatureRenderer.java b/src/jalview/renderer/seqfeatures/FeatureRenderer.java index 1ccb673..9e0089f 100644 --- a/src/jalview/renderer/seqfeatures/FeatureRenderer.java +++ b/src/jalview/renderer/seqfeatures/FeatureRenderer.java @@ -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;