commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject svn commit: r1028757 - /commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java
Date Fri, 29 Oct 2010 14:22:35 GMT
Author: ebourg
Date: Fri Oct 29 14:22:34 2010
New Revision: 1028757

URL: http://svn.apache.org/viewvc?rev=1028757&view=rev
Log:
Changed the accessibility of the CommandLine constructor to allow custom parsers to be implemented
outside of the org.apache.commons.cli package

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

Modified: commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java?rev=1028757&r1=1028756&r2=1028757&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java (original)
+++ commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java Fri Oct
29 14:22:34 2010
@@ -54,7 +54,7 @@ public class CommandLine implements Seri
     /**
      * Creates a command line.
      */
-    CommandLine()
+    protected CommandLine()
     {
         // nothing to do
     }
@@ -344,7 +344,7 @@ public class CommandLine implements Seri
      *
      * @param arg the unrecognised option/argument.
      */
-    void addArg(String arg)
+    protected void addArg(String arg)
     {
         args.add(arg);
     }
@@ -354,7 +354,7 @@ public class CommandLine implements Seri
      *
      * @param opt the processed option
      */
-    void addOption(Option opt)
+    protected void addOption(Option opt)
     {
         options.add(opt);
     }



Mime
View raw message