git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c95dd7c
)
Use stringbuffer, not string+
author
amwaterhouse
<Andrew Waterhouse>
Thu, 17 Nov 2005 15:16:19 +0000
(15:16 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Thu, 17 Nov 2005 15:16:19 +0000
(15:16 +0000)
src/jalview/analysis/AlignSeq.java
patch
|
blob
|
history
diff --git
a/src/jalview/analysis/AlignSeq.java
b/src/jalview/analysis/AlignSeq.java
index
092928f
..
661857f
100755
(executable)
--- 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)
\r
{
\r
StringTokenizer str = new StringTokenizer(seq, gapChar);
\r
- String newString = new String();
\r
+ StringBuffer newString = new StringBuffer();
\r
\r
while (str.hasMoreTokens())
\r
{
\r
- newString = newString + str.nextToken();
\r
+ newString.append( str.nextToken() );
\r
}
\r
\r
- return newString;
\r
+ return newString.toString();
\r
}
\r
\r
/**
\r