db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r799735 - /db/jdo/trunk/api2/test/java/javax/jdo/JDOConfigTestClassLoader.java
Date Fri, 31 Jul 2009 20:11:06 GMT
Author: clr
Date: Fri Jul 31 20:11:06 2009
New Revision: 799735

URL: http://svn.apache.org/viewvc?rev=799735&view=rev
Log:
Java 5 cleanup

Modified:
    db/jdo/trunk/api2/test/java/javax/jdo/JDOConfigTestClassLoader.java

Modified: db/jdo/trunk/api2/test/java/javax/jdo/JDOConfigTestClassLoader.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/test/java/javax/jdo/JDOConfigTestClassLoader.java?rev=799735&r1=799734&r2=799735&view=diff
==============================================================================
--- db/jdo/trunk/api2/test/java/javax/jdo/JDOConfigTestClassLoader.java (original)
+++ db/jdo/trunk/api2/test/java/javax/jdo/JDOConfigTestClassLoader.java Fri Jul 31 20:11:06
2009
@@ -71,16 +71,16 @@
             String[] partialPathsToIgnore,
             AntClassLoader unparent
     ) {
-        List elements = new ArrayList();
+        List<String> elements = new ArrayList<String>();
         String classpath = unparent.getClasspath();
         StringTokenizer st = new StringTokenizer(
                 classpath, System.getProperty("path.separator"));
         while (st.hasMoreTokens()) {
             elements.add("file://" + st.nextToken());
         }
-        Iterator i = elements.iterator();
+        Iterator<String> i = elements.iterator();
         while (i.hasNext()) {
-            String element = (String) i.next();
+            String element = i.next();
             for (int j = 0; j < partialPathsToIgnore.length; j++) {
                 if (element.indexOf(partialPathsToIgnore[j]) == -1) {
                     try {



Mime
View raw message