JAL-2146 small optimisation (avoid String creation)
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 10 Aug 2016 10:34:31 +0000 (11:34 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 10 Aug 2016 10:34:31 +0000 (11:34 +0100)
src/jalview/gui/SeqPanel.java

index 8ebcc87..f476d41 100644 (file)
@@ -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;
     /*