commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1095607 - /commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/AmbiguousOptionException.java
Date Thu, 21 Apr 2011 07:07:40 GMT
Author: simonetripodi
Date: Thu Apr 21 07:07:40 2011
New Revision: 1095607

URL: http://svn.apache.org/viewvc?rev=1095607&view=rev
Log:
matchingOptions is a collection of Strings, so the Iterator can be safely typed

Modified:
    commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/AmbiguousOptionException.java

Modified: commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/AmbiguousOptionException.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/AmbiguousOptionException.java?rev=1095607&r1=1095606&r2=1095607&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/AmbiguousOptionException.java
(original)
+++ commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/AmbiguousOptionException.java
Thu Apr 21 07:07:40 2011
@@ -70,7 +70,7 @@ public class AmbiguousOptionException ex
         buff.append(option);
         buff.append("'  (could be: ");
 
-        Iterator it = matchingOptions.iterator();
+        Iterator<String> it = matchingOptions.iterator();
         while (it.hasNext())
         {
             buff.append("'");



Mime
View raw message