commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r546992 - /jakarta/commons/proper/cli/branches/cli-1.0.x/src/java/org/apache/commons/cli/HelpFormatter.java
Date Wed, 13 Jun 2007 18:29:46 GMT
Author: bayard
Date: Wed Jun 13 11:29:45 2007
New Revision: 546992

URL: http://svn.apache.org/viewvc?view=rev&rev=546992
Log:
Moved the attributes back to being public fields so as to maintain backwards compatibility.
Each one has been deprecated, with the deprecation meaning we'll move them to private scope
rather than remove them. 

Modified:
    jakarta/commons/proper/cli/branches/cli-1.0.x/src/java/org/apache/commons/cli/HelpFormatter.java

Modified: jakarta/commons/proper/cli/branches/cli-1.0.x/src/java/org/apache/commons/cli/HelpFormatter.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/cli/branches/cli-1.0.x/src/java/org/apache/commons/cli/HelpFormatter.java?view=diff&rev=546992&r1=546991&r2=546992
==============================================================================
--- jakarta/commons/proper/cli/branches/cli-1.0.x/src/java/org/apache/commons/cli/HelpFormatter.java
(original)
+++ jakarta/commons/proper/cli/branches/cli-1.0.x/src/java/org/apache/commons/cli/HelpFormatter.java
Wed Jun 13 11:29:45 2007
@@ -40,7 +40,10 @@
     /** default padding to the left of each line */
     public static final int DEFAULT_LEFT_PAD = 1;
 
-    /** ?? */
+    /**
+     * the number of characters of padding to be prefixed
+     * to each description line
+     */
     public static final int DEFAULT_DESC_PAD = 3;
 
     /** the string to display at the begining of the usage statement */
@@ -57,29 +60,62 @@
 
     // -------------------------------------------------------------- Attributes
 
-    /** number of characters per line */
-    private int defaultWidth = DEFAULT_WIDTH;
-
-    /** amount of padding to the left of each line */
-    private int defaultLeftPad = DEFAULT_LEFT_PAD;
-
-    /** ?? */
-    private int defaultDescPad = DEFAULT_DESC_PAD;
-
-    /** the string to display at the begining of the usage statement */
-    private String defaultSyntaxPrefix = DEFAULT_SYNTAX_PREFIX;
-
-    /** the new line character/string ?? */
-    private String defaultNewLine = System.getProperty("line.separator");
-
-    /** the shortOpt prefix */
-    private String defaultOptPrefix = DEFAULT_OPT_PREFIX;
-
-    /** the long Opt prefix */
-    private String defaultLongOptPrefix = DEFAULT_LONG_OPT_PREFIX;
-
-    /** the name of the argument */
-    private String defaultArgName = DEFAULT_ARG_NAME;
+    /**
+     * number of characters per line
+     *
+     * @deprecated Scope will be made private for next major version
+     */
+    public int defaultWidth = DEFAULT_WIDTH;
+
+    /**
+     * amount of padding to the left of each line
+     *
+     * @deprecated Scope will be made private for next major version
+     */
+    public int defaultLeftPad = DEFAULT_LEFT_PAD;
+
+    /**
+     * the number of characters of padding to be prefixed
+     * to each description line
+     *
+     * @deprecated Scope will be made private for next major version
+     */
+    public int defaultDescPad = DEFAULT_DESC_PAD;
+
+    /**
+     * the string to display at the begining of the usage statement
+     *
+     * @deprecated Scope will be made private for next major version
+     */
+    public String defaultSyntaxPrefix = DEFAULT_SYNTAX_PREFIX;
+
+    /**
+     * the new line string
+     *
+     * @deprecated Scope will be made private for next major version
+     */
+    public String defaultNewLine = System.getProperty("line.separator");
+
+    /**
+     * the shortOpt prefix
+     *
+     * @deprecated Scope will be made private for next major version
+     */
+    public String defaultOptPrefix = DEFAULT_OPT_PREFIX;
+
+    /**
+     * the long Opt prefix
+     *
+     * @deprecated Scope will be made private for next major version
+     */
+    public String defaultLongOptPrefix = DEFAULT_LONG_OPT_PREFIX;
+
+    /**
+     * the name of the argument
+     *
+     * @deprecated Scope will be made private for next major version
+     */
+    public String defaultArgName = DEFAULT_ARG_NAME;
 
     /**
      * Sets the 'width'.



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message