use List rather than Vector
[jalview.git] / 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();