You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by eb...@apache.org on 2010/10/29 16:22:35 UTC

svn commit: r1028757 - /commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java

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);
     }