commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1439421 - /commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/DefaultParser.java
Date Mon, 28 Jan 2013 14:24:22 GMT
Author: tn
Date: Mon Jan 28 14:24:22 2013
New Revision: 1439421

URL: http://svn.apache.org/viewvc?rev=1439421&view=rev
Log:
Added javadoc for member fields, formatting, fix eclipse warning wrt raw types.

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

Modified: commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/DefaultParser.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/DefaultParser.java?rev=1439421&r1=1439420&r2=1439421&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/DefaultParser.java (original)
+++ commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/DefaultParser.java Mon Jan
28 14:24:22 2013
@@ -31,7 +31,10 @@ import java.util.Properties;
  */
 public class DefaultParser implements CommandLineParser
 {
+    /** The command-line instance. */
     protected CommandLine cmd;
+    
+    /** The current options. */
     protected Options options;
 
     /**
@@ -94,7 +97,8 @@ public class DefaultParser implements Co
      * @throws ParseException if there are any problems encountered
      * while parsing the command line tokens.
      */
-    public CommandLine parse(Options options, String[] arguments, Properties properties,
boolean stopAtNonOption) throws ParseException
+    public CommandLine parse(Options options, String[] arguments, Properties properties,
boolean stopAtNonOption)
+            throws ParseException
     {
         this.options = options;
         this.stopAtNonOption = stopAtNonOption;
@@ -141,7 +145,7 @@ public class DefaultParser implements Co
             return;
         }
 
-        for (Enumeration e = properties.propertyNames(); e.hasMoreElements();)
+        for (Enumeration<?> e = properties.propertyNames(); e.hasMoreElements();)
         {
             String option = e.nextElement().toString();
 



Mime
View raw message