From 2466e94aa67b0559bd5c4c6e17d60b6fac3cb756 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 17 Nov 2016 16:08:59 +0000 Subject: [PATCH] JAL-2323 revert to thread-safe iteration over array field --- src/jalview/renderer/seqfeatures/FeatureRenderer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 1.7.10.2