logging-commits mailing list archives

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

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

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

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SMTPAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SMTPAppender.java?rev=1501433&r1=1501432&r2=1501433&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SMTPAppender.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SMTPAppender.java
Tue Jul  9 18:25:44 2013
@@ -129,9 +129,9 @@ public final class SMTPAppender<T extend
             return null;
         }
 
-        final boolean isHandleExceptions = suppressExceptions == null ? true : Boolean.valueOf(suppressExceptions);
+        final boolean isHandleExceptions = suppressExceptions == null ? true : Boolean.parseBoolean(suppressExceptions);
         final int smtpPort = Integers.parseInt(smtpPortNum); 
-        final boolean isSmtpDebug = smtpDebug == null ? false : Boolean.valueOf(smtpDebug);
+        final boolean isSmtpDebug = smtpDebug == null ? false : Boolean.parseBoolean(smtpDebug);
         final int bufferSize = bufferSizeNum == null ? DEFAULT_BUFFER_SIZE : Integer.valueOf(bufferSizeNum);
 
         if (layout == null) {



Mime
View raw message