commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject svn commit: r1664934 - /commons/proper/bcel/trunk/src/test/java/org/apache/bcel/generic/AnnotationGenTestCase.java
Date Sat, 07 Mar 2015 23:27:50 GMT
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;



Mime
View raw message