logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1584466 - /logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/BasicThreadInformation.java
Date Thu, 03 Apr 2014 23:26:18 GMT
Author: mattsicker
Date: Thu Apr  3 23:26:18 2014
New Revision: 1584466

URL: http://svn.apache.org/r1584466
Log:
Replace single char strings with chars.

Modified:
    logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/BasicThreadInformation.java

Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/BasicThreadInformation.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/BasicThreadInformation.java?rev=1584466&r1=1584465&r2=1584466&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/BasicThreadInformation.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/BasicThreadInformation.java
Thu Apr  3 23:26:18 2014
@@ -81,16 +81,16 @@ class BasicThreadInformation implements 
      */
     @Override
     public void printThreadInfo(final StringBuilder sb) {
-        sb.append("\"").append(name).append("\" ");
+        sb.append('"').append(name).append("\" ");
         if (isDaemon) {
             sb.append("daemon ");
         }
-        sb.append("prio=").append(priority).append(" tid=").append(id).append(" ");
+        sb.append("prio=").append(priority).append(" tid=").append(id).append(' ');
         if (threadGroupName != null) {
-            sb.append("group=\"").append(threadGroupName).append("\"");
+            sb.append("group=\"").append(threadGroupName).append('"');
         }
-        sb.append("\n");
-        sb.append("\tThread state: ").append(state.name()).append("\n");
+        sb.append('\n');
+        sb.append("\tThread state: ").append(state.name()).append('\n');
     }
 
     /**
@@ -101,7 +101,7 @@ class BasicThreadInformation implements 
     @Override
     public void printStack(final StringBuilder sb, final StackTraceElement[] trace) {
         for (final StackTraceElement element : trace) {
-            sb.append("\tat ").append(element).append("\n");
+            sb.append("\tat ").append(element).append('\n');
         }
     }
 }



Mime
View raw message