commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r376559 - /jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/validation/DateValidator.java
Date Fri, 10 Feb 2006 05:20:02 GMT
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


Mime
View raw message