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 Field.java
Date Sun, 08 Jun 2003 05:29:27 GMT
dgraham     2003/06/07 22:29:27

  Modified:    validator/src/share/org/apache/commons/validator Field.java
  Log:
  Changed toString() method.
  
  Revision  Changes    Path
  1.17      +26 -26    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.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- Field.java	7 Jun 2003 19:25:58 -0000	1.16
  +++ Field.java	8 Jun 2003 05:29:27 -0000	1.17
  @@ -720,29 +720,29 @@
        * Returns a string representation of the object.
        */       
       public String toString() {
  -       StringBuffer results = new StringBuffer();
  -       
  -       results.append("\t\tkey=                 " + key    + "\n");
  -       results.append("\t\tproperty=            " + property    + "\n");
  -       results.append("\t\tindexedProperty=     " + indexedProperty    + "\n");
  -       results.append("\t\tindexedListProperty= " + indexedListProperty    + "\n");
  -       results.append("\t\tdepends=             " + depends    + "\n");
  -       results.append("\t\tpage=                " + page    + "\n");
  -       results.append("\t\tfieldOrder=          " + fieldOrder    + "\n");
  -
  -       if (hVars != null) {
  -          results.append("\t\tVars:\n");
  -    	  for (Iterator i = hVars.keySet().iterator(); i.hasNext(); ) {
  -    	     Object key = i.next();
  -    	     results.append("\t\t\t");
  -    	     results.append(key);
  -    	     results.append("=");
  -    	     results.append(hVars.get(key));
  -    	     results.append("\n");
  -    	   }
  +    	StringBuffer results = new StringBuffer();
  +    
  +    	results.append("\t\tkey = " + key + "\n");
  +    	results.append("\t\tproperty = " + property + "\n");
  +    	results.append("\t\tindexedProperty = " + indexedProperty + "\n");
  +    	results.append("\t\tindexedListProperty = " + indexedListProperty + "\n");
  +    	results.append("\t\tdepends = " + depends + "\n");
  +    	results.append("\t\tpage = " + page + "\n");
  +    	results.append("\t\tfieldOrder = " + fieldOrder + "\n");
  +    
  +    	if (hVars != null) {
  +    		results.append("\t\tVars:\n");
  +    		for (Iterator i = hVars.keySet().iterator(); i.hasNext();) {
  +    			Object key = i.next();
  +    			results.append("\t\t\t");
  +    			results.append(key);
  +    			results.append("=");
  +    			results.append(hVars.get(key));
  +    			results.append("\n");
  +    		}
       	}
  -    	
  -       return results.toString();
  +    
  +    	return results.toString();
       }
       
   }
  
  
  

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