logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1566206 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationFactory.java
Date Sun, 09 Feb 2014 03:44:00 GMT
Author: ggregory
Date: Sun Feb  9 03:43:59 2014
New Revision: 1566206

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

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationFactory.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationFactory.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationFactory.java?rev=1566206&r1=1566205&r2=1566206&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationFactory.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/ConfigurationFactory.java
Sun Feb  9 03:43:59 2014
@@ -463,7 +463,7 @@ public abstract class ConfigurationFacto
                     final String[] types = factory.getSupportedTypes();
                     if (types != null) {
                         for (final String type : types) {
-                            if (type.equals("*") || (config != null && config.endsWith(type)))
{
+                            if (type.equals("*") || config != null && config.endsWith(type))
{
                                 final Configuration c = factory.getConfiguration(source);
                                 if (c != null) {
                                     return c;



Mime
View raw message