You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by dw...@apache.org on 2002/03/19 07:18:43 UTC

cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator Field.java

dwinterfeldt    02/03/18 22:18:43

  Modified:    validator/src/share/org/apache/commons/validator Field.java
  Log:
  The isIndexed only checks if indexedListProperty is set and indexedListProperty is used instead of indexedProperty when generating the key.  PropertyUtils works with just getting back a List so indexProperty may be unnecessary as a reference to getXXX(int pos) and setXXX(int pos, Object value).
  
  Revision  Changes    Path
  1.4       +2 -3      jakarta-commons/validator/src/share/org/apache/commons/validator/Field.java
  
  Index: Field.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/Field.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Field.java	13 Mar 2002 05:39:32 -0000	1.3
  +++ Field.java	19 Mar 2002 06:18:43 -0000	1.4
  @@ -414,8 +414,7 @@
        * <code>true</code> will be returned.  Otherwise it will be <code>false</code>.
       */
       public boolean isIndexed() {
  -       return ((indexedProperty != null && indexedProperty.length() > 0) &&
  -               (indexedListProperty != null && indexedListProperty.length() > 0));
  +       return ((indexedListProperty != null && indexedListProperty.length() > 0));
       }
   
       /**
  @@ -423,7 +422,7 @@
       */    
       public void generateKey() {
          if (isIndexed()) {
  -          key = indexedProperty + TOKEN_INDEXED + "." + property;
  +          key = indexedListProperty + TOKEN_INDEXED + "." + property;
          } else {
             key = property;
          }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>