logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1490691 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/layout/XMLLayout.java
Date Fri, 07 Jun 2013 15:45:01 GMT
Author: ggregory
Date: Fri Jun  7 15:45:01 2013
New Revision: 1490691

URL: http://svn.apache.org/r1490691
Log:
No need to use StringBuilder. Javadoc fix.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/layout/XMLLayout.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/layout/XMLLayout.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/layout/XMLLayout.java?rev=1490691&r1=1490690&r2=1490691&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/layout/XMLLayout.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/layout/XMLLayout.java
Fri Jun  7 15:45:01 2013
@@ -208,7 +208,7 @@ public class XMLLayout extends AbstractS
 
 
     /**
-     * Returns appropriate XML headers.
+     * Returns appropriate XML footer.
      * @return a byte array containing the footer.
      */
     @Override
@@ -216,9 +216,7 @@ public class XMLLayout extends AbstractS
         if (!complete) {
             return null;
         }
-        final StringBuilder sbuf = new StringBuilder();
-        sbuf.append("</log4j:eventSet>\r\n");
-        return sbuf.toString().getBytes(getCharset());
+        return "</log4j:eventSet>\r\n".getBytes(getCharset());
     }
 
     /**



Mime
View raw message