commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1440528 - /commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/BugsTest.java
Date Wed, 30 Jan 2013 17:11:24 GMT
Author: sebb
Date: Wed Jan 30 17:11:24 2013
New Revision: 1440528

URL: http://svn.apache.org/viewvc?rev=1440528&view=rev
Log:
Imports and raw tytpes

Modified:
    commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/BugsTest.java

Modified: commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/BugsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/BugsTest.java?rev=1440528&r1=1440527&r2=1440528&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/BugsTest.java (original)
+++ commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/BugsTest.java Wed Jan 30
17:11:24 2013
@@ -19,8 +19,6 @@ package org.apache.commons.cli;
 
 import java.io.ByteArrayOutputStream;
 import java.io.PrintStream;
-import java.io.PrintWriter;
-import java.io.StringWriter;
 import java.util.Iterator;
 import java.util.Properties;
 
@@ -62,10 +60,10 @@ public class BugsTest extends TestCase
         assertEquals(values[1], "file2");
         assertEquals(values[2], "file3");
 
-        Iterator iter = cmd.iterator();
+        Iterator<Option> iter = cmd.iterator();
         while (iter.hasNext())
         {
-            Option opt = (Option) iter.next();
+            Option opt = iter.next();
             switch (opt.getId())
             {
                 case 'D':



Mime
View raw message