db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcai...@apache.org
Subject svn commit: r328819 - /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/models/fieldtypes/TestCollectionCollections.java
Date Thu, 27 Oct 2005 07:37:21 GMT
Author: mcaisse
Date: Thu Oct 27 00:37:13 2005
New Revision: 328819

URL: http://svn.apache.org/viewcvs?rev=328819&view=rev
Log:
JDO-144 Changes as per comment by Andy Jefferson 22/Oct/05

Modified:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/models/fieldtypes/TestCollectionCollections.java

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/models/fieldtypes/TestCollectionCollections.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/models/fieldtypes/TestCollectionCollections.java?rev=328819&r1=328818&r2=328819&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/models/fieldtypes/TestCollectionCollections.java
(original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/models/fieldtypes/TestCollectionCollections.java
Thu Oct 27 00:37:13 2005
@@ -18,6 +18,7 @@
 
 import java.math.BigDecimal;
 import java.util.Collection;
+import java.util.List;
 import java.util.Vector;
 
 import javax.jdo.PersistenceManager;
@@ -149,12 +150,12 @@
             else if (! val.equals(compareWith)) {
                 if (TestUtil.getFieldSpecs(CollectionCollections.fieldSpecs[i]
                             ).equals("BigDecimal")) {
-                    Vector compareWithV = (Vector)compareWith;
-                    Vector valV = (Vector)val;
+                    List compareWithV = (List)compareWith;
+                    List valV = (List)val;
                     for (int j = 0; j < val.size(); ++j) {
                         BigDecimal bigDecCompareWith =
-                            (BigDecimal)compareWithV.elementAt(j);
-                        Object bigDecVal = valV.elementAt(j);
+                            (BigDecimal)compareWithV.get(j);
+                        Object bigDecVal = valV.get(j);
                         if ((bigDecCompareWith.compareTo(bigDecVal) != 0)) {
                             sbuf.append("\nFor element " + i + "(" + j +
                                     "), expected = " + compareWith +



Mime
View raw message