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:
076e8c3
)
JAL-2146 small optimisation (avoid String creation)
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Wed, 10 Aug 2016 10:34:31 +0000
(11:34 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Wed, 10 Aug 2016 10:34:31 +0000
(11:34 +0100)
src/jalview/gui/SeqPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SeqPanel.java
b/src/jalview/gui/SeqPanel.java
index
8ebcc87
..
f476d41
100644
(file)
--- a/
src/jalview/gui/SeqPanel.java
+++ b/
src/jalview/gui/SeqPanel.java
@@
-857,7
+857,8
@@
public class SeqPanel extends JPanel implements MouseListener,
* Sequence number (if known), and sequence name.
*/
String seqno = seq == -1 ? "" : " " + (seq + 1);
- text.append("Sequence" + seqno + " ID: " + sequence.getName());
+ text.append("Sequence").append(seqno).append(" ID: ")
+ .append(sequence.getName());
String residue = null;
/*