myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r641608 - /myfaces/core/trunk/api/src/main/java/javax/faces/validator/LengthValidator.java
Date Wed, 26 Mar 2008 22:24:42 GMT
Author: lu4242
Date: Wed Mar 26 15:24:34 2008
New Revision: 641608

URL: http://svn.apache.org/viewvc?rev=641608&view=rev
Log:
fix MYFACES-1799 javax.faces.validator.LengthValidator.getMaximum() returns Integer.MAX_VALUE

Modified:
    myfaces/core/trunk/api/src/main/java/javax/faces/validator/LengthValidator.java

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/validator/LengthValidator.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/validator/LengthValidator.java?rev=641608&r1=641607&r2=641608&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/validator/LengthValidator.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/validator/LengthValidator.java Wed Mar
26 15:24:34 2008
@@ -97,7 +97,7 @@
     // SETTER & GETTER
     public int getMaximum()
     {
-        return _maximum != null ? _maximum.intValue() : Integer.MAX_VALUE;
+        return _maximum != null ? _maximum.intValue() : 0;
     }
 
     public void setMaximum(int maximum)



Mime
View raw message