From: kiramt Date: Mon, 15 Jan 2018 11:59:40 +0000 (+0000) Subject: JAL-2759 Simplified HiddenColumns constructor after review X-Git-Tag: Release_2_10_4~55^2~1^2~41 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a0a2e9033dcb76747839e93ea6680b0191a31a79;p=jalview.git JAL-2759 Simplified HiddenColumns constructor after review --- diff --git a/src/jalview/datamodel/HiddenColumns.java b/src/jalview/datamodel/HiddenColumns.java index 18afa5b..d1345e3 100644 --- a/src/jalview/datamodel/HiddenColumns.java +++ b/src/jalview/datamodel/HiddenColumns.java @@ -94,29 +94,7 @@ public class HiddenColumns */ public HiddenColumns(HiddenColumns copy) { - try - { - LOCK.writeLock().lock(); - numColumns = 0; - if (copy != null) - { - if (copy.hiddenColumns != null) - { - hiddenColumns = new ArrayList<>(); - Iterator it = copy.iterator(); - while (it.hasNext()) - { - int[] region = it.next(); - hiddenColumns.add(region); - numColumns += region[1] - region[0] + 1; - } - cursor.resetCursor(hiddenColumns); - } - } - } finally - { - LOCK.writeLock().unlock(); - } + this(copy, Integer.MIN_VALUE, Integer.MAX_VALUE, 0); } /**