JAL-966 avoid using java.util.Vector
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Mon, 17 Jun 2013 09:31:58 +0000 (10:31 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Mon, 17 Jun 2013 09:31:58 +0000 (10:31 +0100)
src/jalview/analysis/Dna.java

index a3a0fe1..f0041f6 100644 (file)
@@ -17,6 +17,7 @@
  */
 package jalview.analysis;
 
+import java.util.ArrayList;
 import java.util.Hashtable;
 import java.util.Vector;
 
@@ -423,7 +424,7 @@ public class Dna
           String seqstring, int[] viscontigs, AlignedCodonFrame codons,
           char gapCharacter, DBRefEntry product)
   {
-    Vector skip = new Vector();
+    java.util.List skip = new ArrayList();
     int skipint[] = null;
     ShiftList vismapping = new ShiftList(); // map from viscontigs to seqstring
     // intervals
@@ -499,7 +500,7 @@ public class Dna
                 }
               }
             }
-            skip.addElement(skipint);
+            skip.add(skipint);
             skipint = null;
           }
           if (aa.equals("STOP"))