struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Struts Wiki] Trivial Update of "ValidatorTool" by newacct
Date Sun, 23 May 2010 07:52:28 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification.

The "ValidatorTool" page has been changed by newacct.
http://wiki.apache.org/struts/ValidatorTool?action=diff&rev1=3&rev2=4

--------------------------------------------------

           StringBuffer sb = new StringBuffer(); 
           String name = 
               formName.substring(0, 1).toUpperCase() 
-                  + formName.substring(1, formName.length()); 
+                  + formName.substring(1); 
  
           sb.append(this.getStartElement()); 
  
@@ -731, +731 @@

  
               if (c <= 'z') { 
                   if (i == 0) { 
-                      return c + input.substring(pos, input.length()); 
+                      return c + input.substring(pos); 
                   } else if (i == input.length()) { 
                       return input.substring(0, pos) + c; 
                   } else { 
@@ -753, +753 @@

        */ 
       private String replaceChar(String input, int pos, char c) { 
           if (pos == 0) { 
-              return c + input.substring(pos, input.length()); 
+              return c + input.substring(pos); 
           } else if (pos == input.length()) { 
               return input.substring(0, pos) + c; 
           } else { 

Mime
View raw message