From: Jim Procter Date: Mon, 17 Jun 2013 09:31:58 +0000 (+0100) Subject: JAL-966 avoid using java.util.Vector X-Git-Tag: Jalview_2_9~240^2~12 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a2207bf3ccb22ccd26719724bb9de964ddf24dce;p=jalview.git JAL-966 avoid using java.util.Vector --- diff --git a/src/jalview/analysis/Dna.java b/src/jalview/analysis/Dna.java index a3a0fe1..f0041f6 100644 --- a/src/jalview/analysis/Dna.java +++ b/src/jalview/analysis/Dna.java @@ -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"))