Author: doogie
Date: Wed Oct 17 19:56:02 2007 New Revision: 585805 URL: http://svn.apache.org/viewvc?rev=585805&view=rev Log: Switch as much as possible from StringBuffer to StringBuilder. Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/location/OFBizHomeLocationResolver.java ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/CachedClassLoader.java ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/HttpClient.java ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilFormatOut.java ofbiz/trunk/framework/common/src/org/ofbiz/common/KeywordSearchUtil.java ofbiz/trunk/framework/datafile/src/org/ofbiz/datafile/Record.java ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/eca/EntityEcaCondition.java ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/permission/EntityPermissionChecker.java ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/synchronization/EntitySyncContext.java ofbiz/trunk/framework/shark/src/org/ofbiz/shark/expression/BaseEntityCondExprBldr.java ofbiz/trunk/framework/shark/src/org/ofbiz/shark/user/GenericUserGroupMgr.java ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ConfigXMLReader.java ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ContextFilter.java ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/CoreEvents.java ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/SOAPEventHandler.java ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/ServiceMultiEventHandler.java ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/WfsEventHandler.java ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/XmlRpcEventHandler.java ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizAmountTransform.java ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizCurrencyTransform.java ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizUrlTransform.java ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JPublishWrapper.java ofbiz/trunk/framework/workflow/src/org/ofbiz/workflow/definition/XpdlReader.java Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/location/OFBizHomeLocationResolver.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/location/OFBizHomeLocationResolver.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/location/OFBizHomeLocationResolver.java (original) +++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/location/OFBizHomeLocationResolver.java Wed Oct 17 19:56:02 2007 @@ -39,7 +39,7 @@ throw new MalformedURLException(errMsg); } - StringBuffer baseLocation = new StringBuffer(FlexibleLocation.stripLocationType(location)); + StringBuilder baseLocation = new StringBuilder(FlexibleLocation.stripLocationType(location)); // if there is not a forward slash between the two, add it if (baseLocation.charAt(0) != '/' && propValue.charAt(propValue.length() - 1) != '/') { Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/CachedClassLoader.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/CachedClassLoader.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/CachedClassLoader.java (original) +++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/CachedClassLoader.java Wed Oct 17 19:56:02 2007 @@ -127,7 +127,7 @@ this.contextName = contextName; if (Debug.verboseOn()) { Package[] paks = this.getPackages(); - StringBuffer pakList = new StringBuffer(); + StringBuilder pakList = new StringBuilder(); for (int i = 0; i < paks.length; i++) { pakList.append(paks[i].getName()); if (i < (paks.length - 1)) { Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/HttpClient.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/HttpClient.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/HttpClient.java (original) +++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/HttpClient.java Wed Oct 17 19:56:02 2007 @@ -330,7 +330,7 @@ InputStream in = sendHttpRequestStream(method); if (in == null) return null; - StringBuffer buf = new StringBuffer(); + StringBuilder buf = new StringBuilder(); try { if (Debug.verboseOn() || debug) { try { Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilFormatOut.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilFormatOut.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilFormatOut.java (original) +++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilFormatOut.java Wed Oct 17 19:56:02 2007 @@ -252,7 +252,7 @@ } public static String formatPaddedNumber(long number, int numericPadding) { - StringBuffer outStrBfr = new StringBuffer(Long.toString(number)); + StringBuilder outStrBfr = new StringBuilder(Long.toString(number)); while (numericPadding > outStrBfr.length()) { outStrBfr.insert(0, '0'); } @@ -261,7 +261,7 @@ public static String formatPaddingRemove(String original) { if (original == null) return null; - StringBuffer orgBuf = new StringBuffer(original); + StringBuilder orgBuf = new StringBuilder(original); while (orgBuf.length() > 0 && orgBuf.charAt(0) == '0') { orgBuf.deleteCharAt(0); } Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/KeywordSearchUtil.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/KeywordSearchUtil.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/common/src/org/ofbiz/common/KeywordSearchUtil.java (original) +++ ofbiz/trunk/framework/common/src/org/ofbiz/common/KeywordSearchUtil.java Wed Oct 17 19:56:02 2007 @@ -153,7 +153,7 @@ } if (forSearch) { - StringBuffer strSb = new StringBuffer(); + StringBuilder strSb = new StringBuilder(); if (anyPrefix) strSb.append('%'); strSb.append(token); if (anySuffix) strSb.append('%'); @@ -187,7 +187,7 @@ if (forSearch) { // remove %_*? from separators if is for a search - StringBuffer sb = new StringBuffer(separators); + StringBuilder sb = new StringBuilder(separators); if (sb.indexOf("%") >= 0) sb.deleteCharAt(sb.indexOf("%")); if (sb.indexOf("_") >= 0) sb.deleteCharAt(sb.indexOf("_")); if (sb.indexOf("*") >= 0) sb.deleteCharAt(sb.indexOf("*")); Modified: ofbiz/trunk/framework/datafile/src/org/ofbiz/datafile/Record.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/datafile/src/org/ofbiz/datafile/Record.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/datafile/src/org/ofbiz/datafile/Record.java (original) +++ ofbiz/trunk/framework/datafile/src/org/ofbiz/datafile/Record.java Wed Oct 17 19:56:02 2007 @@ -363,7 +363,7 @@ if (str != null && field.length > 0 && str.length() < field.length) { // pad the end with spaces - StringBuffer strBuf = new StringBuffer(str); + StringBuilder strBuf = new StringBuilder(str); while (strBuf.length() < field.length) strBuf.append(' '); @@ -378,7 +378,7 @@ boolean isFixedLength = ModelDataFile.SEP_FIXED_LENGTH.equals(modelDataFile.separatorStyle); boolean isDelimited = ModelDataFile.SEP_DELIMITED.equals(modelDataFile.separatorStyle); - StringBuffer lineBuf = new StringBuffer(); + StringBuilder lineBuf = new StringBuilder(); for (int f = 0; f < modelRecord.fields.size(); f++) { ModelField modelField = (ModelField) modelRecord.fields.get(f); @@ -388,7 +388,7 @@ char PAD_CHAR = ' '; if (data == null) { - StringBuffer sb = new StringBuffer(""); + StringBuilder sb = new StringBuilder(""); for (int i = 0; i < modelField.length; i++) sb.append(PAD_CHAR); @@ -429,7 +429,7 @@ String padFrontZeros(String str, int totalLength) { if (totalLength > 0 && str.length() < totalLength) { // pad the front with zeros - StringBuffer zeros = new StringBuffer(); + StringBuilder zeros = new StringBuilder(); int numZeros = totalLength - str.length(); for (int i = 0; i < numZeros; i++) Modified: ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/eca/EntityEcaCondition.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/eca/EntityEcaCondition.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/eca/EntityEcaCondition.java (original) +++ ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/eca/EntityEcaCondition.java Wed Oct 17 19:56:02 2007 @@ -101,7 +101,7 @@ } public String toString() { - StringBuffer buf = new StringBuffer(); + StringBuilder buf = new StringBuilder(); buf.append("[" + lhsValueName + "]"); buf.append("[" + operator + "]"); buf.append("[" + rhsValueName + "]"); Modified: ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/permission/EntityPermissionChecker.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/permission/EntityPermissionChecker.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/permission/EntityPermissionChecker.java (original) +++ ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/permission/EntityPermissionChecker.java Wed Oct 17 19:56:02 2007 @@ -1079,7 +1079,7 @@ public String dumpAsText() { List fieldNames = UtilMisc.toList("roleFieldName", "auxiliaryFieldName", "statusFieldName"); Map widths = UtilMisc.toMap("roleFieldName", new Integer(24), "auxiliaryFieldName", new Integer(24), "statusFieldName", new Integer(24)); - StringBuffer buf = new StringBuffer(); + StringBuilder buf = new StringBuilder(); Integer wid = null; buf.append("Dump for "); @@ -1219,7 +1219,7 @@ } public String dumpAsText() { - StringBuffer buf = new StringBuffer(); + StringBuilder buf = new StringBuilder(); buf.append("AUXILIARY: "); if (entityList != null) { for (int i=0; i < entityList.size(); i++) { @@ -1345,7 +1345,7 @@ } public String dumpAsText() { - StringBuffer buf = new StringBuffer(); + StringBuilder buf = new StringBuilder(); buf.append("ROLES: "); if (roleIdList != null) { for (int i=0; i < roleIdList.size(); i++) { Modified: ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/synchronization/EntitySyncContext.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/synchronization/EntitySyncContext.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/synchronization/EntitySyncContext.java (original) +++ ofbiz/trunk/framework/entityext/src/org/ofbiz/entityext/synchronization/EntitySyncContext.java Wed Oct 17 19:56:02 2007 @@ -433,7 +433,7 @@ // TEST SECTION: leave false for normal use boolean logValues = false; if (logValues && valuesToCreate.size() > 0) { - StringBuffer toCreateInfo = new StringBuffer(); + StringBuilder toCreateInfo = new StringBuilder(); Iterator valuesToCreateIter = valuesToCreate.iterator(); while (valuesToCreateIter.hasNext()) { GenericValue valueToCreate = (GenericValue) valuesToCreateIter.next(); @@ -577,7 +577,7 @@ // TEST SECTION: leave false for normal use boolean logValues = false; if (logValues && valuesToStore.size() > 0) { - StringBuffer toStoreInfo = new StringBuffer(); + StringBuilder toStoreInfo = new StringBuilder(); Iterator valuesToStoreIter = valuesToStore.iterator(); while (valuesToStoreIter.hasNext()) { GenericValue valueToStore = (GenericValue) valuesToStoreIter.next(); @@ -694,7 +694,7 @@ // TEST SECTION: leave false for normal use boolean logValues = false; if (logValues && keysToRemove.size() > 0) { - StringBuffer toRemoveInfo = new StringBuffer(); + StringBuilder toRemoveInfo = new StringBuilder(); Iterator keysToRemoveIter = keysToRemove.iterator(); while (keysToRemoveIter.hasNext()) { GenericEntity keyToRemove = (GenericEntity) keysToRemoveIter.next(); Modified: ofbiz/trunk/framework/shark/src/org/ofbiz/shark/expression/BaseEntityCondExprBldr.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/shark/src/org/ofbiz/shark/expression/BaseEntityCondExprBldr.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/shark/src/org/ofbiz/shark/expression/BaseEntityCondExprBldr.java (original) +++ ofbiz/trunk/framework/shark/src/org/ofbiz/shark/expression/BaseEntityCondExprBldr.java Wed Oct 17 19:56:02 2007 @@ -68,7 +68,7 @@ } public String toExpression() { - StringBuffer ret = new StringBuffer(); + StringBuilder ret = new StringBuilder(); if (!this.isComplete()) { ret.append("/*FORCE*/\n"); } Modified: ofbiz/trunk/framework/shark/src/org/ofbiz/shark/user/GenericUserGroupMgr.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/shark/src/org/ofbiz/shark/user/GenericUserGroupMgr.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/shark/src/org/ofbiz/shark/user/GenericUserGroupMgr.java (original) +++ ofbiz/trunk/framework/shark/src/org/ofbiz/shark/user/GenericUserGroupMgr.java Wed Oct 17 19:56:02 2007 @@ -365,7 +365,7 @@ } public String getUserRealName(UserTransaction trans, String username) throws RootException { - StringBuffer buf = new StringBuffer(); + StringBuilder buf = new StringBuilder(); GenericValue user = getUser(username); if (!UtilValidate.isEmpty(user.getString(org.ofbiz.shark.SharkConstants.firstName))) { buf.append(user.getString(org.ofbiz.shark.SharkConstants.firstName)); Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ConfigXMLReader.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ConfigXMLReader.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ConfigXMLReader.java (original) +++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ConfigXMLReader.java Wed Oct 17 19:56:02 2007 @@ -277,7 +277,7 @@ String request = (String) o; Map thisURI = (Map) map.get(o); - StringBuffer verboseMessageBuffer = new StringBuffer(); + StringBuilder verboseMessageBuffer = new StringBuilder(); Iterator debugIter = thisURI.keySet().iterator(); while (debugIter.hasNext()) { @@ -371,7 +371,7 @@ String request = (String) o; Map thisURI = (Map) map.get(o); - StringBuffer verboseMessageBuffer = new StringBuffer(); + StringBuilder verboseMessageBuffer = new StringBuilder(); Iterator debugIter = thisURI.keySet().iterator(); while (debugIter.hasNext()) { Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ContextFilter.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ContextFilter.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ContextFilter.java (original) +++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ContextFilter.java Wed Oct 17 19:56:02 2007 @@ -197,7 +197,7 @@ requestInfo = requestInfo.substring(0, requestInfo.lastIndexOf("/")) + "/*"; } - StringBuffer contextUriBuffer = new StringBuffer(); + StringBuilder contextUriBuffer = new StringBuilder(); if (httpRequest.getContextPath() != null) { contextUriBuffer.append(httpRequest.getContextPath()); } Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java (original) +++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java Wed Oct 17 19:56:02 2007 @@ -127,7 +127,7 @@ // Check if we SHOULD be secure and are not. If we are posting let it pass to not lose data. (too late now anyway) if (!request.isSecure() && requestManager.requiresHttps(requestUri) && !request.getMethod().equalsIgnoreCase("POST")) { - StringBuffer urlBuf = new StringBuffer(); + StringBuilder urlBuf = new StringBuilder(); urlBuf.append(request.getPathInfo()); if (request.getQueryString() != null) { urlBuf.append("?").append(request.getQueryString()); @@ -463,7 +463,7 @@ public String makeQueryString(HttpServletRequest request) { Map paramMap = UtilHttp.getParameterMap(request); - StringBuffer queryString = new StringBuffer(); + StringBuilder queryString = new StringBuilder(); if (paramMap != null && paramMap.size() > 0) { queryString.append("?"); Iterator i = paramMap.keySet().iterator(); @@ -677,7 +677,7 @@ String httpServer = UtilProperties.getPropertyValue("url.properties", "force.http.host"); boolean useHttps = UtilProperties.propertyValueEqualsIgnoreCase("url.properties", "port.https.enabled", "Y"); - StringBuffer newURL = new StringBuffer(); + StringBuilder newURL = new StringBuilder(); if (secure && useHttps) { String server = httpsServer; @@ -765,7 +765,7 @@ String controlPath = (String) request.getAttribute("_CONTROL_PATH_"); String requestUri = RequestHandler.getRequestUri(url); - StringBuffer newURL = new StringBuffer(); + StringBuilder newURL = new StringBuilder(); boolean didFullSecure = false; boolean didFullStandard = false; Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/CoreEvents.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/CoreEvents.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/CoreEvents.java (original) +++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/CoreEvents.java Wed Oct 17 19:56:02 2007 @@ -235,7 +235,7 @@ int interval = 1; int frequency = RecurrenceRule.DAILY; - StringBuffer errorBuf = new StringBuffer(); + StringBuilder errorBuf = new StringBuilder(); // make sure we passed a service if (serviceName == null) { Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/SOAPEventHandler.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/SOAPEventHandler.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/SOAPEventHandler.java (original) +++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/SOAPEventHandler.java Wed Oct 17 19:56:02 2007 @@ -116,7 +116,7 @@ if (serviceName == null) { try { Writer writer = response.getWriter(); - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); sb.append("<html><head><title>OFBiz SOAP/1.1 Services</title></head>"); sb.append("<body>No such service.").append("<p>Services:<ul>"); @@ -299,7 +299,7 @@ } private String getLocationURI(HttpServletRequest request) { - StringBuffer uri = new StringBuffer(); + StringBuilder uri = new StringBuilder(); uri.append(request.getScheme()); uri.append("://"); uri.append(request.getServerName()); Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/ServiceMultiEventHandler.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/ServiceMultiEventHandler.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/ServiceMultiEventHandler.java (original) +++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/ServiceMultiEventHandler.java Wed Oct 17 19:56:02 2007 @@ -374,7 +374,7 @@ } errorMessages.add(0, errorPrefixStr); errorMessages.add(errorSuffixStr); - StringBuffer errorBuf = new StringBuffer(); + StringBuilder errorBuf = new StringBuilder(); Iterator ei = errorMessages.iterator(); while (ei.hasNext()) { String em = (String) ei.next(); Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/WfsEventHandler.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/WfsEventHandler.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/WfsEventHandler.java (original) +++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/WfsEventHandler.java Wed Oct 17 19:56:02 2007 @@ -178,7 +178,7 @@ } private String getLocationURI(HttpServletRequest request) { - StringBuffer uri = new StringBuffer(); + StringBuilder uri = new StringBuilder(); // uri.append(request.getScheme()); // uri.append("://"); // uri.append(request.getServerName()); Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/XmlRpcEventHandler.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/XmlRpcEventHandler.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/XmlRpcEventHandler.java (original) +++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/XmlRpcEventHandler.java Wed Oct 17 19:56:02 2007 @@ -62,7 +62,7 @@ public String invoke(String eventPath, String eventMethod, HttpServletRequest request, HttpServletResponse response) throws EventHandlerException { String report = request.getParameter("echo"); if (report != null) { - StringBuffer buf = new StringBuffer(); + StringBuilder buf = new StringBuilder(); try { // read the inputstream buffer String line; Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizAmountTransform.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizAmountTransform.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizAmountTransform.java (original) +++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizAmountTransform.java Wed Oct 17 19:56:02 2007 @@ -92,7 +92,7 @@ } public Writer getWriter(final Writer out, Map args) { - final StringBuffer buf = new StringBuffer(); + final StringBuilder buf = new StringBuilder(); final Double amount = OfbizAmountTransform.getAmount(args, "amount"); final String locale = OfbizAmountTransform.getArg(args, "locale"); Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java (original) +++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizContentTransform.java Wed Oct 17 19:56:02 2007 @@ -37,7 +37,7 @@ public class OfbizContentTransform implements TemplateTransformModel { public Writer getWriter(final Writer out, Map args) { - final StringBuffer buf = new StringBuffer(); + final StringBuilder buf = new StringBuilder(); return new Writer(out) { public void write(char cbuf[], int off, int len) { buf.append(cbuf, off, len); Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizCurrencyTransform.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizCurrencyTransform.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizCurrencyTransform.java (original) +++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizCurrencyTransform.java Wed Oct 17 19:56:02 2007 @@ -118,7 +118,7 @@ } public Writer getWriter(final Writer out, Map args) { - final StringBuffer buf = new StringBuffer(); + final StringBuilder buf = new StringBuilder(); final Double amount = OfbizCurrencyTransform.getAmount(args, "amount"); final String isoCode = OfbizCurrencyTransform.getArg(args, "isoCode"); Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizUrlTransform.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizUrlTransform.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizUrlTransform.java (original) +++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/ftl/OfbizUrlTransform.java Wed Oct 17 19:56:02 2007 @@ -53,7 +53,7 @@ } public Writer getWriter(final Writer out, Map args) { - final StringBuffer buf = new StringBuffer(); + final StringBuilder buf = new StringBuilder(); final boolean fullPath = checkArg(args, "fullPath", false); final boolean secure = checkArg(args, "secure", false); final boolean encode = checkArg(args, "encode", true); Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JPublishWrapper.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JPublishWrapper.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JPublishWrapper.java (original) +++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/view/JPublishWrapper.java Wed Oct 17 19:56:02 2007 @@ -96,7 +96,7 @@ File webClassPath = new File(webInfPath, "classes"); // add WEB-INF/classes to the classpath - StringBuffer classPath = new StringBuffer(); + StringBuilder classPath = new StringBuilder(); classPath.append(System.getProperty("java.class.path")); if (webClassPath.exists()) { Modified: ofbiz/trunk/framework/workflow/src/org/ofbiz/workflow/definition/XpdlReader.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/workflow/src/org/ofbiz/workflow/definition/XpdlReader.java?rev=585805&r1=585804&r2=585805&view=diff ============================================================================== --- ofbiz/trunk/framework/workflow/src/org/ofbiz/workflow/definition/XpdlReader.java (original) +++ ofbiz/trunk/framework/workflow/src/org/ofbiz/workflow/definition/XpdlReader.java Wed Oct 17 19:56:02 2007 @@ -266,7 +266,7 @@ } } if (message.length() > 0) { - StringBuffer lines = new StringBuffer(); + StringBuilder lines = new StringBuilder(); for (int i = 0; i < message.length(); i++) { lines.append("-"); @@ -821,7 +821,7 @@ protected String readActualParameters(List actualParameters) { if (actualParameters == null || actualParameters.size() == 0) return null; - StringBuffer actualParametersBuf = new StringBuffer(); + StringBuilder actualParametersBuf = new StringBuilder(); Iterator actualParametersIter = actualParameters.iterator(); while (actualParametersIter.hasNext()) { |
Free forum by Nabble | Edit this page |