You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by eb...@apache.org on 2015/03/08 00:27:50 UTC
svn commit: r1664934 -
/commons/proper/bcel/trunk/src/test/java/org/apache/bcel/generic/AnnotationGenTestCase.java
Author: ebourg
Date: Sat Mar 7 23:27:50 2015
New Revision: 1664934
URL: http://svn.apache.org/r1664934
Log:
Replaced vectors with lists in AnnotationGenTestCase
Modified:
commons/proper/bcel/trunk/src/test/java/org/apache/bcel/generic/AnnotationGenTestCase.java
Modified: commons/proper/bcel/trunk/src/test/java/org/apache/bcel/generic/AnnotationGenTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/test/java/org/apache/bcel/generic/AnnotationGenTestCase.java?rev=1664934&r1=1664933&r2=1664934&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/test/java/org/apache/bcel/generic/AnnotationGenTestCase.java (original)
+++ commons/proper/bcel/trunk/src/test/java/org/apache/bcel/generic/AnnotationGenTestCase.java Sat Mar 7 23:27:50 2015
@@ -24,7 +24,6 @@ import java.io.DataOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
-import java.util.Vector;
import org.apache.bcel.AbstractTestCase;
import org.apache.bcel.Constants;
@@ -90,7 +89,7 @@ public class AnnotationGenTestCase exten
// Build a RV annotation of type 'SimpleAnnotation' with 'id=4' as the
// only value :)
AnnotationEntryGen a = new AnnotationEntryGen(t, elements, true, cp);
- Vector<AnnotationEntryGen> v = new Vector<AnnotationEntryGen>();
+ List<AnnotationEntryGen> v = new ArrayList<AnnotationEntryGen>();
v.add(a);
Attribute[] attributes = AnnotationEntryGen.getAnnotationAttributes(cp, v);
boolean foundRV = false;
@@ -105,7 +104,7 @@ public class AnnotationGenTestCase exten
// Build a RIV annotation of type 'SimpleAnnotation' with 'id=4' as the
// only value :)
AnnotationEntryGen a2 = new AnnotationEntryGen(t, elements, false, cp);
- Vector<AnnotationEntryGen> v2 = new Vector<AnnotationEntryGen>();
+ List<AnnotationEntryGen> v2 = new ArrayList<AnnotationEntryGen>();
v2.add(a2);
Attribute[] attributes2 = AnnotationEntryGen.getAnnotationAttributes(cp, v2);
boolean foundRIV = false;