use List rather than Vector
authorjprocter <jprocter@compbio.dundee.ac.uk>
Wed, 19 Oct 2011 17:25:37 +0000 (18:25 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 21 Oct 2011 14:53:24 +0000 (15:53 +0100)
src/jalview/analysis/Conservation.java

index 8e3b6e4..5c26ac4 100755 (executable)
@@ -85,7 +85,7 @@ public class Conservation
    *          end residue position
    */
   public Conservation(String name, Hashtable propHash, int threshold,
-          Vector sequences, int start, int end)
+          List<SequenceI> sequences, int start, int end)
   {
     this.name = name;
     this.propHash = propHash;
@@ -102,7 +102,7 @@ public class Conservation
     try {
     for (s = 0; s < sSize; s++)
     {
-      sarray[s] = (SequenceI) sequences.elementAt(s);
+      sarray[s] = (SequenceI) sequences.get(s);
       if (sarray[s].getLength() > maxLength)
       {
         maxLength = sarray[s].getLength();