Author: doogie
Date: Mon Jun 29 02:21:05 2009
New Revision: 789191
URL:
http://svn.apache.org/viewvc?rev=789191&view=revLog:
Some string + to StringBuilder changes.
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=789191&r1=789190&r2=789191&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 02:21:05 2009
@@ -207,19 +207,19 @@
if (ajaxEnabled) {
writer.append("<script language=\"JavaScript\" type=\"text/javascript\">");
- String url = inPlaceEditor.getUrl(context);
+ StringBuilder url = new StringBuilder(inPlaceEditor.getUrl(context));
Map<String, Object> fieldMap = inPlaceEditor.getFieldMap(context);
if (fieldMap != null) {
- url += '?';
+ url.append('?');
Set<Entry<String, Object>> fieldSet = fieldMap.entrySet();
Iterator<Entry<String, Object>> fieldIterator = fieldSet.iterator();
int count = 0;
while (fieldIterator.hasNext()) {
count++;
Entry<String, Object> field = fieldIterator.next();
- url += (String) field.getKey() + '=' + (String) field.getValue();
+ url.append(field.getKey()).append('=').append(field.getValue());
if (count < fieldSet.size()) {
- url += '&';
+ url.append('&');
}
}
}