commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r1195324 - /commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/AbstractCalendarValidator.java
Date Mon, 31 Oct 2011 03:53:21 GMT
Author: dbrosius
Date: Mon Oct 31 03:53:21 2011
New Revision: 1195324

URL: http://svn.apache.org/viewvc?rev=1195324&view=rev
Log:
remove check for DAY_OF_MONTH as it is a repeated test with DATE, as DAY_OF_MONTH and DATE
are synonyms

Modified:
    commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/AbstractCalendarValidator.java

Modified: commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/AbstractCalendarValidator.java
URL: http://svn.apache.org/viewvc/commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/AbstractCalendarValidator.java?rev=1195324&r1=1195323&r2=1195324&view=diff
==============================================================================
--- commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/AbstractCalendarValidator.java
(original)
+++ commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/AbstractCalendarValidator.java
Mon Oct 31 03:53:21 2011
@@ -298,7 +298,6 @@ public abstract class AbstractCalendarVa
         // Compare Date
         result = calculateCompareResult(value, compare, Calendar.DATE);
         if (result != 0 || (field == Calendar.DATE || 
-                          field == Calendar.DAY_OF_MONTH ||
                           field == Calendar.DAY_OF_WEEK ||
                           field == Calendar.DAY_OF_WEEK_IN_MONTH)) {
             return result;



Mime
View raw message