From a2207bf3ccb22ccd26719724bb9de964ddf24dce Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 17 Jun 2013 10:31:58 +0100 Subject: [PATCH] JAL-966 avoid using java.util.Vector --- src/jalview/analysis/Dna.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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")) -- 1.7.10.2