logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1566196 - /logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java
Date Sun, 09 Feb 2014 03:29:09 GMT
Author: ggregory
Date: Sun Feb  9 03:29:08 2014
New Revision: 1566196

URL: http://svn.apache.org/r1566196
Log:
PMD: Remove unnecessary parens.

Modified:
    logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java

Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java?rev=1566196&r1=1566195&r2=1566196&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/DefaultThreadContextMap.java
Sun Feb  9 03:29:08 2014
@@ -52,7 +52,7 @@ public class DefaultThreadContextMap imp
             return new InheritableThreadLocal<Map<String, String>>() {
                 @Override
                 protected Map<String, String> childValue(final Map<String, String>
parentValue) {
-                    return (parentValue != null && isMapEnabled) //
+                    return parentValue != null && isMapEnabled //
                             ? Collections.unmodifiableMap(new HashMap<String, String>(parentValue))
//
                             : null;
                 }



Mime
View raw message