From: kiramt Date: Tue, 16 Jan 2018 08:10:28 +0000 (+0000) Subject: JAL-2759 Replaced StringBuffer with StringBuilder; after review X-Git-Tag: Release_2_10_4~55^2~1^2~35 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=650bed7f2109092a55ca924039a03628fef2126b;p=jalview.git JAL-2759 Replaced StringBuffer with StringBuilder; after review --- 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);