commons-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1440529&view=rev
Log:
Raw types

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

Modified: commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/OptionsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/OptionsTest.java?rev=1440529&r1=1440528&r2=1440529&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/OptionsTest.java (original)
+++ commons/proper/cli/trunk/src/test/java/org/apache/commons/cli/OptionsTest.java Wed Jan
30 17:12:33 2013
@@ -84,7 +84,7 @@ public class OptionsTest extends TestCas
         options.addOption(bothA);
         options.addOption(bothB);
         
-        Collection allOptions = new ArrayList();
+        Collection<Option> allOptions = new ArrayList<Option>();
         allOptions.add(longOnly1);
         allOptions.add(longOnly2);
         allOptions.add(shortOnly1);
@@ -92,7 +92,7 @@ public class OptionsTest extends TestCas
         allOptions.add(bothA);
         allOptions.add(bothB);
         
-        Collection helpOptions = options.helpOptions();
+        Collection<Option> helpOptions = options.helpOptions();
         
         assertTrue("Everything in all should be in help", helpOptions.containsAll(allOptions));
         assertTrue("Everything in help should be in all", allOptions.containsAll(helpOptions));
       



Mime
View raw message