JAL-2795 removed unneeded for loop (woops) and initialized identifiers[]
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Mon, 30 Oct 2017 15:38:35 +0000 (15:38 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Mon, 30 Oct 2017 15:38:35 +0000 (15:38 +0000)
src/jalview/ext/forester/ForesterMatrix.java

index cac1993..fa67e4e 100644 (file)
@@ -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++;
-    }
 
 
   }