From 04e9b9fa60cf42251cdf715cf69beedfbfa124cc Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Mon, 30 Oct 2017 15:38:35 +0000 Subject: [PATCH] JAL-2795 removed unneeded for loop (woops) and initialized identifiers[] --- src/jalview/ext/forester/ForesterMatrix.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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++; - } } -- 1.7.10.2