logging-commits mailing list archives

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

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

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

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/RollingFileAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/RollingFileAppender.java?rev=1501431&r1=1501430&r2=1501431&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/RollingFileAppender.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/RollingFileAppender.java
Tue Jul  9 18:25:22 2013
@@ -139,11 +139,11 @@ public final class RollingFileAppender<T
                                               @PluginAttr("advertiseURI") final String advertiseURI,
                                               @PluginConfiguration final Configuration config)
{
 
-        final boolean isAppend = append == null ? true : Boolean.valueOf(append);
-        final boolean handleExceptions = suppress == null ? true : Boolean.valueOf(suppress);
-        final boolean isBuffered = bufferedIO == null ? true : Boolean.valueOf(bufferedIO);
-        final boolean isFlush = immediateFlush == null ? true : Boolean.valueOf(immediateFlush);
-        final boolean isAdvertise = advertise == null ? false : Boolean.valueOf(advertise);
+        final boolean isAppend = append == null ? true : Boolean.parseBoolean(append);
+        final boolean handleExceptions = suppress == null ? true : Boolean.parseBoolean(suppress);
+        final boolean isBuffered = bufferedIO == null ? true : Boolean.parseBoolean(bufferedIO);
+        final boolean isFlush = immediateFlush == null ? true : Boolean.parseBoolean(immediateFlush);
+        final boolean isAdvertise = advertise == null ? false : Boolean.parseBoolean(advertise);
         if (name == null) {
             LOGGER.error("No name provided for FileAppender");
             return null;



Mime
View raw message