From: amwaterhouse Date: Thu, 17 Nov 2005 15:16:19 +0000 (+0000) Subject: Use stringbuffer, not string+ X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f4b7a6009254c29ca4bc4a2b73de173b12b752c7;p=jalview.git Use stringbuffer, not string+ --- diff --git a/src/jalview/analysis/AlignSeq.java b/src/jalview/analysis/AlignSeq.java index 092928f..661857f 100755 --- a/src/jalview/analysis/AlignSeq.java +++ b/src/jalview/analysis/AlignSeq.java @@ -655,14 +655,14 @@ public class AlignSeq public static String extractGaps(String gapChar, String seq) { StringTokenizer str = new StringTokenizer(seq, gapChar); - String newString = new String(); + StringBuffer newString = new StringBuffer(); while (str.hasMoreTokens()) { - newString = newString + str.nextToken(); + newString.append( str.nextToken() ); } - return newString; + return newString.toString(); } /**