commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator Validator.java
Date Wed, 12 Mar 2003 06:00:52 GMT
dgraham     2003/03/11 22:00:52

  Modified:    validator/src/share/org/apache/commons/validator
                        Validator.java
  Log:
  Rearranged variable declaration for simplicity.
  
  Revision  Changes    Path
  1.13      +7 -6      jakarta-commons/validator/src/share/org/apache/commons/validator/Validator.java
  
  Index: Validator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Validator.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Validator.java	12 Mar 2003 05:58:57 -0000	1.12
  +++ Validator.java	12 Mar 2003 06:00:52 -0000	1.13
  @@ -575,11 +575,12 @@
               locale = Locale.getDefault();
           }
   
  -        Form form = null;
           if (resources == null) {
               throw new ValidatorException("Resources not defined for Validator");
           }
  -        if ((form = resources.get(locale, formName)) != null) {
  +
  +        Form form = resources.get(locale, formName);
  +        if (form != null) {
               for (Iterator i = form.getFields().iterator(); i.hasNext();) {
                   Field field = (Field) i.next();
                   if (field.getPage() <= page) {
  
  
  

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