logging-commits mailing list archives

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

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

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

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SyslogAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SyslogAppender.java?rev=1501436&r1=1501435&r2=1501436&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SyslogAppender.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SyslogAppender.java
Tue Jul  9 18:26:25 2013
@@ -122,12 +122,12 @@ public class SyslogAppender<T extends Se
                                                 @PluginElement("LoggerFields") final LoggerFields
loggerFields,
                                                 @PluginAttr("advertise") final String advertise)
{
 
-        final boolean isFlush = immediateFlush == null ? true : Boolean.valueOf(immediateFlush);
-        final boolean handleExceptions = suppress == null ? true : Boolean.valueOf(suppress);
+        final boolean isFlush = immediateFlush == null ? true : Boolean.parseBoolean(immediateFlush);
+        final boolean handleExceptions = suppress == null ? true : Boolean.parseBoolean(suppress);
         final int reconnectDelay = Integers.parseInt(delay);
-        final boolean fail = immediateFail == null ? true : Boolean.valueOf(immediateFail);
+        final boolean fail = immediateFail == null ? true : Boolean.parseBoolean(immediateFail);
         final int port = Integers.parseInt(portNum);
-        final boolean isAdvertise = advertise == null ? false : Boolean.valueOf(advertise);
+        final boolean isAdvertise = advertise == null ? false : Boolean.parseBoolean(advertise);
         @SuppressWarnings("unchecked")
         final Layout<S> layout = (Layout<S>) (RFC5424.equalsIgnoreCase(format)
?
             RFC5424Layout.createLayout(facility, id, ein, includeMDC, mdcId, mdcPrefix, eventPrefix,
includeNL,



Mime
View raw message