logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1501439 - /logging/log4j/log4j2/trunk/flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeAppender.java
Date Tue, 09 Jul 2013 18:28:06 GMT
Author: ggregory
Date: Tue Jul  9 18:28:05 2013
New Revision: 1501439

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

Modified:
    logging/log4j/log4j2/trunk/flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeAppender.java

Modified: logging/log4j/log4j2/trunk/flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeAppender.java?rev=1501439&r1=1501438&r2=1501439&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeAppender.java
(original)
+++ logging/log4j/log4j2/trunk/flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeAppender.java
Tue Jul  9 18:28:05 2013
@@ -177,10 +177,10 @@ public final class FlumeAppender<T exten
                                                    @PluginElement("layout") Layout<S>
layout,
                                                    @PluginElement("filters") final Filter
filter) {
 
-        final boolean embed = embedded != null ? Boolean.valueOf(embedded) :
+        final boolean embed = embedded != null ? Boolean.parseBoolean(embedded) :
             (agents == null || agents.length == 0) && properties != null &&
properties.length > 0;
-        final boolean handleExceptions = suppress == null ? true : Boolean.valueOf(suppress);
-        final boolean compress = compressBody == null ? true : Boolean.valueOf(compressBody);
+        final boolean handleExceptions = suppress == null ? true : Boolean.parseBoolean(suppress);
+        final boolean compress = compressBody == null ? true : Boolean.parseBoolean(compressBody);
         ManagerType managerType;
         if (type != null) {
             if (embed && embedded != null) {



Mime
View raw message