logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1501434 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java
Date Tue, 09 Jul 2013 18:26:09 GMT
Author: ggregory
Date: Tue Jul  9 18:26:08 2013
New Revision: 1501434

URL: http://svn.apache.org/r1501434
Log:
Remove wasted boxing and unboxing.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java?rev=1501434&r1=1501433&r2=1501434&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java
Tue Jul  9 18:26:08 2013
@@ -101,10 +101,10 @@ public class SocketAppender<T extends Se
                                                 @PluginAttr("advertise") final String advertise,
                                                 @PluginConfiguration final Configuration
config) {
 
-        boolean isFlush = immediateFlush == null ? true : Boolean.valueOf(immediateFlush);
-        final boolean isAdvertise = advertise == null ? false : Boolean.valueOf(advertise);
-        final boolean handleExceptions = suppress == null ? true : Boolean.valueOf(suppress);
-        final boolean fail = immediateFail == null ? true : Boolean.valueOf(immediateFail);
+        boolean isFlush = immediateFlush == null ? true : Boolean.parseBoolean(immediateFlush);
+        final boolean isAdvertise = advertise == null ? false : Boolean.parseBoolean(advertise);
+        final boolean handleExceptions = suppress == null ? true : Boolean.parseBoolean(suppress);
+        final boolean fail = immediateFail == null ? true : Boolean.parseBoolean(immediateFail);
         final int reconnectDelay = Integers.parseInt(delay);
         final int port = Integers.parseInt(portNum);
         if (layout == null) {



Mime
View raw message