From 389f27369f0d47aca795bec97498bde987ce3805 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Wed, 10 Aug 2016 11:34:31 +0100 Subject: [PATCH] JAL-2146 small optimisation (avoid String creation) --- src/jalview/gui/SeqPanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index 8ebcc87..f476d41 100644 --- 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; /* -- 1.7.10.2