You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by Apache Wiki <wi...@apache.org> on 2010/05/23 09:52:28 UTC
[Struts Wiki] Trivial Update of "ValidatorTool" by newacct
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 {