Author: doogie
Date: Mon Jun 29 03:30:06 2009
New Revision: 789203
URL:
http://svn.apache.org/viewvc?rev=789203&view=revLog:
Convert some string additions to StringBuilder.
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java?rev=789203&r1=789202&r2=789203&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java Mon Jun 29 03:30:06 2009
@@ -2884,13 +2884,13 @@
if (updateAreas == null) {
return "";
}
- String ajaxUrl = "";
+ StringBuilder ajaxUrl = new StringBuilder();
boolean firstLoop = true;
for (ModelForm.UpdateArea updateArea : updateAreas) {
if (firstLoop) {
firstLoop = false;
} else {
- ajaxUrl += ",";
+ ajaxUrl.append(",");
}
String targetUrl = updateArea.getAreaTarget(context);
String ajaxParams = getAjaxParamsFromTarget(targetUrl);
@@ -2900,10 +2900,10 @@
}
ajaxParams += extraParams;
}
- ajaxUrl += updateArea.getAreaId() + ",";
- ajaxUrl += this.rh.makeLink(this.request, this.response, UtilHttp.removeQueryStringFromTarget(targetUrl));
- ajaxUrl += "," + ajaxParams;
+ ajaxUrl.append(updateArea.getAreaId()).append(",");
+ ajaxUrl.append(this.rh.makeLink(this.request, this.response, UtilHttp.removeQueryStringFromTarget(targetUrl)));
+ ajaxUrl.append(",").append(ajaxParams);
}
- return ajaxUrl;
+ return ajaxUrl.toString();
}
}