From: kjvdheide Date: Mon, 30 Oct 2017 15:38:35 +0000 (+0000) Subject: JAL-2795 removed unneeded for loop (woops) and initialized identifiers[] X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=04e9b9fa60cf42251cdf715cf69beedfbfa124cc;p=jalview.git JAL-2795 removed unneeded for loop (woops) and initialized identifiers[] --- diff --git a/src/jalview/ext/forester/ForesterMatrix.java b/src/jalview/ext/forester/ForesterMatrix.java index cac1993..fa67e4e 100644 --- a/src/jalview/ext/forester/ForesterMatrix.java +++ b/src/jalview/ext/forester/ForesterMatrix.java @@ -29,6 +29,7 @@ public class ForesterMatrix implements DistanceMatrix { this.jalviewMatrix = jalviewInputMatrix; this.sequences = matrixSequences; + this.identifiers = new String[sequences.length]; if (jalviewMatrix.width() != jalviewMatrix.height()) { @@ -55,13 +56,7 @@ public class ForesterMatrix implements DistanceMatrix { // some kind of warning? } - int i = 0; - for (String identifier : matrixIdentifiers) - { - identifiers[i] = identifier; - i++; - } }