logging-commits mailing list archives

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

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

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

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/routing/RoutingAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/routing/RoutingAppender.java?rev=1501438&r1=1501437&r2=1501438&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/routing/RoutingAppender.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/routing/RoutingAppender.java
Tue Jul  9 18:26:57 2013
@@ -184,7 +184,7 @@ public final class RoutingAppender<T ext
                                           @PluginElement("rewritePolicy") final RewritePolicy
rewritePolicy,
                                           @PluginElement("filters") final Filter filter)
{
 
-        final boolean handleExceptions = suppress == null ? true : Boolean.valueOf(suppress);
+        final boolean handleExceptions = suppress == null ? true : Boolean.parseBoolean(suppress);
 
         if (name == null) {
             LOGGER.error("No name provided for RoutingAppender");



Mime
View raw message