You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ba...@apache.org on 2006/02/10 06:20:02 UTC

svn commit: r376559 - /jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/validation/DateValidator.java

Author: bayard
Date: Thu Feb  9 21:19:58 2006
New Revision: 376559

URL: http://svn.apache.org/viewcvs?rev=376559&view=rev
Log:
Renamed Leniant to Lenient - as noticed by James Ring in #37973

Modified:
    jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/validation/DateValidator.java

Modified: jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/validation/DateValidator.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/validation/DateValidator.java?rev=376559&r1=376558&r2=376559&view=diff
==============================================================================
--- jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/validation/DateValidator.java (original)
+++ jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/validation/DateValidator.java Thu Feb  9 21:19:58 2006
@@ -182,7 +182,12 @@
         }
     }
 
-    public void setLeniant(final boolean lenient) {
+    /**
+     * Sets whether this validator uses lenient parsing.
+     *
+     * @param lenient whether this validator uses lenient parsing
+     */
+    public void setLenient(final boolean lenient) {
         for (int i = 0; i < this.formats.length; i++) {
             this.formats[i].setLenient(lenient);
         }
@@ -190,7 +195,12 @@
         this.isLenient = lenient;
     }
 
-    public boolean isLeniant() {
+    /**
+     * Returns whether this validator uses lenient parsing.
+     *
+     * @return whether this validator uses lenient parsing
+     */
+    public boolean isLenient() {
         return this.isLenient;
     }
 
@@ -288,7 +298,7 @@
      */
     public void setFormats(final DateFormat[] formats) {
         this.formats = formats;
-        setLeniant(this.isLenient);
+        setLenient(this.isLenient);
     }
 
     /**



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