incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1489962 - /sling/trunk/bundles/scripting/core/src/main/java/org/apache/sling/scripting/core/impl/LogWriter.java
Date Wed, 05 Jun 2013 17:05:41 GMT
Author: cziegeler
Date: Wed Jun  5 17:05:41 2013
New Revision: 1489962

URL: http://svn.apache.org/r1489962
Log:
SLING-2908 :  Replace StringBuffer with StringBuilder 

Modified:
    sling/trunk/bundles/scripting/core/src/main/java/org/apache/sling/scripting/core/impl/LogWriter.java

Modified: sling/trunk/bundles/scripting/core/src/main/java/org/apache/sling/scripting/core/impl/LogWriter.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/scripting/core/src/main/java/org/apache/sling/scripting/core/impl/LogWriter.java?rev=1489962&r1=1489961&r2=1489962&view=diff
==============================================================================
--- sling/trunk/bundles/scripting/core/src/main/java/org/apache/sling/scripting/core/impl/LogWriter.java
(original)
+++ sling/trunk/bundles/scripting/core/src/main/java/org/apache/sling/scripting/core/impl/LogWriter.java
Wed Jun  5 17:05:41 2013
@@ -37,14 +37,14 @@ public class LogWriter extends Writer {
      * The internal buffer to gather message data until being flushed or a CR or
      * LF is encountered in the message data.
      */
-    private StringBuffer lineBuffer;
+    private StringBuilder lineBuffer;
 
     /**
      * Creates a writer based on the given logger.
      */
     public LogWriter(Logger logger) {
         this.logger = logger;
-        this.lineBuffer = new StringBuffer();
+        this.lineBuffer = new StringBuilder();
     }
 
     /**



Mime
View raw message