Author: doogie
Date: Sun Aug 3 21:50:00 2008 New Revision: 682257 URL: http://svn.apache.org/viewvc?rev=682257&view=rev Log: s/StringBuffer/StringBuilder/g Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentPermissionServices.java ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentWorker.java ofbiz/trunk/applications/content/src/org/ofbiz/content/content/PermissionRecorder.java ofbiz/trunk/applications/content/src/org/ofbiz/content/email/NotificationServices.java ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/CheckPermissionTransform.java ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/EditRenderSubContentCacheTransform.java ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/EditRenderSubContentTransform.java ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/InjectNodeTrailCsvTransform.java ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/LimitedSubContentCacheTransform.java ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/LoopSubContentTransform.java ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderContentTransform.java ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderSubContentAsText.java ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderSubContentCacheTransform.java ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderSubContentTransform.java ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/TraverseSubContentCacheTransform.java ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/TraverseSubContentTransform.java ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/WrapSubContentCacheTransform.java Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentPermissionServices.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentPermissionServices.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentPermissionServices.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentPermissionServices.java Sun Aug 3 21:50:00 2008 @@ -186,7 +186,7 @@ passed = security.hasEntityPermission("CONTENTMGR", entityAction, userLogin); } - StringBuffer errBuf = new StringBuffer(); + StringBuilder errBuf = new StringBuilder(); String permissionStatus = null; List entityIds = FastList.newInstance(); if (passed) { Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentWorker.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentWorker.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentWorker.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentWorker.java Sun Aug 3 21:50:00 2008 @@ -1427,7 +1427,7 @@ if (nodeTrail == null) return ""; - StringBuffer csv = new StringBuffer(); + StringBuilder csv = new StringBuilder(); Iterator it = nodeTrail.iterator(); while (it.hasNext()) { if (csv.length() > 0) Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/content/PermissionRecorder.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/content/PermissionRecorder.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/content/PermissionRecorder.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/content/PermissionRecorder.java Sun Aug 3 21:50:00 2008 @@ -208,7 +208,7 @@ } public String toHtml() { - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); sb.append("<style type=\"text/css\">"); sb.append(".pass {background-color:lime; font-family:Verdana,Arial,sans-serif; font-size:10px; }"); sb.append(".fail {background-color:red; font-family:Verdana,Arial,sans-serif; font-size:10px; }"); @@ -247,7 +247,7 @@ } public String renderCurrentContentMapHtml(Map cMap) { - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); List resultList = (List)cMap.get("checkResultList"); Iterator iter = resultList.iterator(); while (iter.hasNext()) { @@ -262,7 +262,7 @@ //public static final String [] opFields = { "contentPurposeTypeId", "contentOperationId", "roleTypeId", "statusId", "privilegeEnumId"}; public String renderResultRowHtml(Map rMap, Map currentContentResultMap ) { - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); // Do target row sb.append("<tr>"); Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/email/NotificationServices.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/NotificationServices.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/email/NotificationServices.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/email/NotificationServices.java Sun Aug 3 21:50:00 2008 @@ -252,8 +252,8 @@ public static void setBaseUrl(GenericDelegator delegator, String webSiteId, Map context) { // If the baseUrl was not specified we can do a best effort instead if (!context.containsKey("baseUrl")) { - StringBuffer httpBase = null; - StringBuffer httpsBase = null; + StringBuilder httpBase = null; + StringBuilder httpsBase = null; String localServer = null; @@ -307,7 +307,7 @@ } // prepare the (non-secure) URL - httpBase = new StringBuffer("http://"); + httpBase = new StringBuilder("http://"); httpBase.append(httpServer); if (!"80".equals(httpPort)) { httpBase.append(":"); @@ -319,7 +319,7 @@ if (enableHttps.booleanValue()) { // prepare the (secure) URL - httpsBase = new StringBuffer("https://"); + httpsBase = new StringBuilder("https://"); httpsBase.append(httpsServer); if (!"443".equals(httpsPort)) { httpsBase.append(":"); Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/CheckPermissionTransform.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/CheckPermissionTransform.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/CheckPermissionTransform.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/CheckPermissionTransform.java Sun Aug 3 21:50:00 2008 @@ -73,7 +73,7 @@ public Writer getWriter(final Writer out, Map args) { - final StringBuffer buf = new StringBuffer(); + final StringBuilder buf = new StringBuilder(); final Environment env = Environment.getCurrentEnvironment(); final Map templateCtx = FreeMarkerWorker.createEnvironmentMap(env); //FreeMarkerWorker.convertContext(templateCtx); Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/EditRenderSubContentCacheTransform.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/EditRenderSubContentCacheTransform.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/EditRenderSubContentCacheTransform.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/EditRenderSubContentCacheTransform.java Sun Aug 3 21:50:00 2008 @@ -70,7 +70,7 @@ } public Writer getWriter(final Writer out, Map args) { - final StringBuffer buf = new StringBuffer(); + final StringBuilder buf = new StringBuilder(); final Environment env = Environment.getCurrentEnvironment(); final Map templateCtx = (Map) FreeMarkerWorker.getWrappedObject("context", env); final LocalDispatcher dispatcher = (LocalDispatcher) FreeMarkerWorker.getWrappedObject("dispatcher", env); Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/EditRenderSubContentTransform.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/EditRenderSubContentTransform.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/EditRenderSubContentTransform.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/EditRenderSubContentTransform.java Sun Aug 3 21:50:00 2008 @@ -65,7 +65,7 @@ } public Writer getWriter(final Writer out, Map args) { - final StringBuffer buf = new StringBuffer(); + final StringBuilder buf = new StringBuilder(); final Environment env = Environment.getCurrentEnvironment(); Map ctx = (Map) FreeMarkerWorker.getWrappedObject("context", env); final String editTemplate = getArg(args, "editTemplate", ctx); Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/InjectNodeTrailCsvTransform.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/InjectNodeTrailCsvTransform.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/InjectNodeTrailCsvTransform.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/InjectNodeTrailCsvTransform.java Sun Aug 3 21:50:00 2008 @@ -66,7 +66,7 @@ public Writer getWriter(final Writer out, Map args) { - final StringBuffer buf = new StringBuffer(); + final StringBuilder buf = new StringBuilder(); final Environment env = Environment.getCurrentEnvironment(); final Map templateCtx = (Map) FreeMarkerWorker.getWrappedObject("context", env); //FreeMarkerWorker.convertContext(templateCtx); Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/LimitedSubContentCacheTransform.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/LimitedSubContentCacheTransform.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/LimitedSubContentCacheTransform.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/LimitedSubContentCacheTransform.java Sun Aug 3 21:50:00 2008 @@ -77,7 +77,7 @@ public Writer getWriter(final Writer out, Map args) { //Profiler.begin("Limited"); - final StringBuffer buf = new StringBuffer(); + final StringBuilder buf = new StringBuilder(); final Environment env = Environment.getCurrentEnvironment(); final Map templateRoot = FreeMarkerWorker.createEnvironmentMap(env); final GenericDelegator delegator = (GenericDelegator) FreeMarkerWorker.getWrappedObject("delegator", env); @@ -157,7 +157,7 @@ public void write(char cbuf[], int off, int len) { buf.append(cbuf, off, len); - //StringBuffer ctxBuf = (StringBuffer) templateRoot.get("buf"); + //StringBuilder ctxBuf = (StringBuilder) templateRoot.get("buf"); //ctxBuf.append(cbuf, off, len); } Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/LoopSubContentTransform.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/LoopSubContentTransform.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/LoopSubContentTransform.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/LoopSubContentTransform.java Sun Aug 3 21:50:00 2008 @@ -134,7 +134,7 @@ } public Writer getWriter(final Writer out, Map args) { - final StringBuffer buf = new StringBuffer(); + final StringBuilder buf = new StringBuilder(); final Environment env = Environment.getCurrentEnvironment(); final Map templateCtx = (Map) FreeMarkerWorker.getWrappedObject("context", env); final LocalDispatcher dispatcher = (LocalDispatcher) FreeMarkerWorker.getWrappedObject("dispatcher", env); Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderContentTransform.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderContentTransform.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderContentTransform.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderContentTransform.java Sun Aug 3 21:50:00 2008 @@ -125,7 +125,7 @@ } public void closeEditWrap(Writer out, String editRequestName) throws IOException { - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); String fullRequest = editRequestName; String delim = "?"; if (UtilValidate.isNotEmpty(thisContentId)) { Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderSubContentAsText.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderSubContentAsText.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderSubContentAsText.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderSubContentAsText.java Sun Aug 3 21:50:00 2008 @@ -196,7 +196,7 @@ /* if (Debug.infoOn()) Debug.logInfo("in RenderSubContent, contentId(5):" + templateRoot.get("contentId"), module); if (Debug.infoOn()) Debug.logInfo("in RenderSubContent, subContentId(5):" + templateRoot.get("subContentId"), module); - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); String fullRequest = editRequestName; String contentId = null; String contentIdTo = null; Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderSubContentCacheTransform.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderSubContentCacheTransform.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderSubContentCacheTransform.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderSubContentCacheTransform.java Sun Aug 3 21:50:00 2008 @@ -57,7 +57,7 @@ public static final String [] saveKeyNames = {"contentId", "subContentId", "subDataResourceTypeId", "mimeTypeId", "whenMap", "locale", "wrapTemplateId", "encloseWrapText", "nullThruDatesOnly", "globalNodeTrail"}; public Writer getWriter(final Writer out, Map args) { - final StringBuffer buf = new StringBuffer(); + final StringBuilder buf = new StringBuilder(); final Environment env = Environment.getCurrentEnvironment(); //final Map templateCtx = (Map) FreeMarkerWorker.getWrappedObject("context", env); //final Map templateCtx = FastMap.newInstance(); @@ -199,7 +199,7 @@ public void closeEditWrap(Writer out, String editRequestName) throws IOException { //if (Debug.infoOn()) Debug.logInfo("in RenderSubContent, contentId(1):" + templateRoot.get( "contentId"), module); //if (Debug.infoOn()) Debug.logInfo("in Render(0), templateRoot ." + templateRoot , module); - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); String fullRequest = editRequestName; String contentId = null; String contentIdTo = null; Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderSubContentTransform.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderSubContentTransform.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderSubContentTransform.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/RenderSubContentTransform.java Sun Aug 3 21:50:00 2008 @@ -67,7 +67,7 @@ } public Writer getWriter(final Writer out, Map args) { - //final StringBuffer buf = new StringBuffer(); + //final StringBuilder buf = new StringBuilder(); final Environment env = Environment.getCurrentEnvironment(); Map ctx = (Map) FreeMarkerWorker.getWrappedObject("context", env); if (ctx == null) { Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/TraverseSubContentCacheTransform.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/TraverseSubContentCacheTransform.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/TraverseSubContentCacheTransform.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/TraverseSubContentCacheTransform.java Sun Aug 3 21:50:00 2008 @@ -69,7 +69,7 @@ } public Writer getWriter(final Writer out, Map args) { - final StringBuffer buf = new StringBuffer(); + final StringBuilder buf = new StringBuilder(); final Environment env = Environment.getCurrentEnvironment(); //final Map templateRoot = (Map) FreeMarkerWorker.getWrappedObject("context", env); final Map templateRoot = FreeMarkerWorker.createEnvironmentMap(env); @@ -139,7 +139,7 @@ return new LoopWriter(out) { public void write(char cbuf[], int off, int len) { - //StringBuffer ctxBuf = (StringBuffer) templateContext.get("buf"); + //StringBuilder ctxBuf = (StringBuilder) templateContext.get("buf"); //ctxBuf.append(cbuf, off, len); buf.append(cbuf, off, len); } @@ -149,7 +149,7 @@ } public int onStart() throws TemplateModelException, IOException { - //templateContext.put("buf", new StringBuffer()); + //templateContext.put("buf", new StringBuilder()); List nodeTrail = null; Map node = null; GenericValue subContentDataResourceView = null; Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/TraverseSubContentTransform.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/TraverseSubContentTransform.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/TraverseSubContentTransform.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/TraverseSubContentTransform.java Sun Aug 3 21:50:00 2008 @@ -71,7 +71,7 @@ } public Writer getWriter(final Writer out, Map args) { - final StringBuffer buf = new StringBuffer(); + final StringBuilder buf = new StringBuilder(); final Environment env = Environment.getCurrentEnvironment(); final Map templateCtx = (Map) FreeMarkerWorker.getWrappedObject("context", env); //FreeMarkerWorker.convertContext(templateCtx); @@ -156,7 +156,7 @@ return new LoopWriter(out) { public void write(char cbuf[], int off, int len) { - //StringBuffer ctxBuf = (StringBuffer) templateContext.get("buf"); + //StringBuilder ctxBuf = (StringBuilder) templateContext.get("buf"); //ctxBuf.append(cbuf, off, len); buf.append(cbuf, off, len); } @@ -166,7 +166,7 @@ } public int onStart() throws TemplateModelException, IOException { - //templateContext.put("buf", new StringBuffer()); + //templateContext.put("buf", new StringBuilder()); List nodeTrail = FastList.newInstance(); traverseContext.put("nodeTrail", nodeTrail); GenericValue content = null; @@ -204,7 +204,7 @@ public int afterBody() throws TemplateModelException, IOException { //out.write(buf.toString()); //buf.setLength(0); - //templateContext.put("buf", new StringBuffer()); + //templateContext.put("buf", new StringBuilder()); List nodeTrail = (List)traverseContext.get("nodeTrail"); ContentWorker.traceNodeTrail("6",nodeTrail); boolean inProgress = ContentWorker.traverseSubContent(traverseContext); Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/WrapSubContentCacheTransform.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/WrapSubContentCacheTransform.java?rev=682257&r1=682256&r2=682257&view=diff ============================================================================== --- ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/WrapSubContentCacheTransform.java (original) +++ ofbiz/trunk/applications/content/src/org/ofbiz/content/webapp/ftl/WrapSubContentCacheTransform.java Sun Aug 3 21:50:00 2008 @@ -69,7 +69,7 @@ } public Writer getWriter(final Writer out, Map args) { - final StringBuffer buf = new StringBuffer(); + final StringBuilder buf = new StringBuilder(); final Environment env = Environment.getCurrentEnvironment(); Map envContext = (Map) FreeMarkerWorker.getWrappedObject("context", env); final Map templateCtx; |
Free forum by Nabble | Edit this page |