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

svn commit: r1439807 - /commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/Option.java

Author: tn
Date: Tue Jan 29 09:57:22 2013
New Revision: 1439807

URL: http://svn.apache.org/viewvc?rev=1439807&view=rev
Log:
Checkstyle warning: variable order, complete javadoc.

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

Modified: commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/Option.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/Option.java?rev=1439807&r1=1439806&r2=1439807&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/Option.java (original)
+++ commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/Option.java Tue Jan 29 09:57:22 2013
@@ -38,15 +38,15 @@ import java.util.List;
  */
 public class Option implements Cloneable, Serializable
 {
-    /** The serial version UID. */
-    private static final long serialVersionUID = 1L;
-
     /** constant that specifies the number of argument values has not been specified */
     public static final int UNINITIALIZED = -1;
 
     /** constant that specifies the number of argument values is infinite */
     public static final int UNLIMITED_VALUES = -2;
 
+    /** The serial version UID. */
+    private static final long serialVersionUID = 1L;
+
     /** the name of the option */
     private String opt;
 
@@ -662,10 +662,14 @@ public class Option implements Cloneable
 
     /**
      * This method is not intended to be used. It was a piece of internal 
-     * API that was made public in 1.0. It currently throws an UnsupportedOperationException. 
+     * API that was made public in 1.0. It currently throws an UnsupportedOperationException.
+     *
+     * @param value the value to add
+     * @return always throws an {@link UnsupportedOperationException}
+     * @throws UnsupportedOperationException always
      * @deprecated
-     * @throws UnsupportedOperationException
      */
+    @Deprecated
     public boolean addValue(String value)
     {
         throw new UnsupportedOperationException("The addValue method is not intended for client use. "