From: gmungoc Date: Wed, 10 Aug 2016 10:34:31 +0000 (+0100) Subject: JAL-2146 small optimisation (avoid String creation) X-Git-Tag: Release_2_10_0~70^2~14 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=389f27369f0d47aca795bec97498bde987ce3805;p=jalview.git JAL-2146 small optimisation (avoid String creation) --- 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; /*