From 650bed7f2109092a55ca924039a03628fef2126b Mon Sep 17 00:00:00 2001 From: kiramt Date: Tue, 16 Jan 2018 08:10:28 +0000 Subject: [PATCH] JAL-2759 Replaced StringBuffer with StringBuilder; after review --- src/jalview/datamodel/HiddenColumns.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jalview/datamodel/HiddenColumns.java b/src/jalview/datamodel/HiddenColumns.java index 6677151..c666a41 100644 --- a/src/jalview/datamodel/HiddenColumns.java +++ b/src/jalview/datamodel/HiddenColumns.java @@ -481,7 +481,7 @@ public class HiddenColumns newhidden.add(new int[] { left, right }); // make a string with number of gaps = length of hidden region - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); for (int s = 0; s < right - left + 1; s++) { sb.append(gc); @@ -510,7 +510,7 @@ public class HiddenColumns * @param al * alignment to pad sequences in */ - private void padGaps(StringBuffer sb, int pos, SequenceI profileseq, + private void padGaps(StringBuilder sb, int pos, SequenceI profileseq, AlignmentI al) { // loop over the sequences and pad with gaps where required @@ -952,7 +952,7 @@ public class HiddenColumns { for (int i = 0; i < iSize; i++) { - StringBuffer visibleSeq = new StringBuffer(); + StringBuilder visibleSeq = new StringBuilder(); Iterator blocks = new VisibleContigsIterator(start, end + 1, hiddenColumns); -- 1.7.10.2