This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-logging.git

commit 155c1b2a03a2396e40875aeb9548dafbfda4cd03
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Jun 30 07:49:05 2024 -0400

    Remove redundant code
---
 .../java/org/apache/commons/logging/impl/Jdk13LumberjackLogger.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/commons/logging/impl/Jdk13LumberjackLogger.java 
b/src/main/java/org/apache/commons/logging/impl/Jdk13LumberjackLogger.java
index f52cfe2..f2c0fb7 100644
--- a/src/main/java/org/apache/commons/logging/impl/Jdk13LumberjackLogger.java
+++ b/src/main/java/org/apache/commons/logging/impl/Jdk13LumberjackLogger.java
@@ -161,7 +161,7 @@ public class Jdk13LumberjackLogger implements Log, 
Serializable {
             final StringWriter stringWriter = new StringWriter();
             final PrintWriter printWriter = new PrintWriter(stringWriter);
             throwable.printStackTrace(printWriter);
-            final String traceString = stringWriter.getBuffer().toString();
+            final String traceString = new 
StringBuilder(stringWriter.getBuffer().toString()).toString();
             final StringTokenizer tokenizer = new StringTokenizer(traceString, 
"\n");
             tokenizer.nextToken();
             String line = tokenizer.nextToken();

Reply via email to