commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jke...@apache.org
Subject svn commit: r191224 - /jakarta/commons/proper/cli/trunk/src/java/org/apache/commons/cli2/validation/DateValidator.java
Date Fri, 17 Jun 2005 23:40:27 GMT
Author: jkeyes
Date: Fri Jun 17 16:40:25 2005
New Revision: 191224

URL: http://svn.apache.org/viewcvs?rev=191224&view=rev
Log:
- use setter rather than access field directly

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=191224&r1=191223&r2=191224&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
Fri Jun 17 16:40:25 2005
@@ -217,7 +217,7 @@
      *              the format to use
      */
     public void setFormat(final DateFormat format) {
-    	formats = new DateFormat[]{format};
+    	setFormats(new DateFormat[]{format});
     }
     
     /**



---------------------------------------------------------------------
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