commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1439199 - in /commons/proper/cli/trunk/src/main/java/org/apache/commons/cli: AmbiguousOptionException.java Parser.java
Date Sun, 27 Jan 2013 22:14:31 GMT
Author: tn
Date: Sun Jan 27 22:14:30 2013
New Revision: 1439199

URL: http://svn.apache.org/viewvc?rev=1439199&view=rev
Log:
Fix more checkstyle warnings.

Modified:
    commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/AmbiguousOptionException.java
    commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/Parser.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=1439199&r1=1439198&r2=1439199&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
Sun Jan 27 22:14:30 2013
@@ -51,6 +51,7 @@ public class AmbiguousOptionException ex
 
     /**
      * Returns the options matching the partial name.
+     * @return a collection of options matching the name
      */
     public Collection<String> getMatchingOptions()
     {

Modified: commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/Parser.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/Parser.java?rev=1439199&r1=1439198&r2=1439199&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/Parser.java (original)
+++ commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/Parser.java Sun Jan 27 22:14:30
2013
@@ -144,12 +144,14 @@ public abstract class Parser implements 
             throws ParseException
     {
         // clear out the data in options in case it's been used before (CLI-71)
-        for (Option opt : options.helpOptions()) {
+        for (Option opt : options.helpOptions())
+        {
             opt.clearValues();
         }
         
         // clear the data from the groups
-        for (OptionGroup group : options.getOptionGroups()) {
+        for (OptionGroup group : options.getOptionGroups())
+        {
             group.setSelected(null);
         }        
 



Mime
View raw message