From f4b7a6009254c29ca4bc4a2b73de173b12b752c7 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 17 Nov 2005 15:16:19 +0000 Subject: [PATCH] Use stringbuffer, not string+ --- src/jalview/analysis/AlignSeq.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } /** -- 1.7.10.2