logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1616410 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/JndiLookup.java
Date Thu, 07 Aug 2014 06:04:30 GMT
Author: ggregory
Date: Thu Aug  7 06:04:30 2014
New Revision: 1616410

URL: http://svn.apache.org/r1616410
Log:
Fix compiler (style) warning: The parameter jndiName should not be assigned.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/JndiLookup.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/JndiLookup.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/JndiLookup.java?rev=1616410&r1=1616409&r2=1616410&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/JndiLookup.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/JndiLookup.java
Thu Aug  7 06:04:30 2014
@@ -75,7 +75,7 @@ public class JndiLookup implements StrLo
      */
     private String convertJndiName(String jndiName) {
         if (!jndiName.startsWith(CONTAINER_JNDI_RESOURCE_PATH_PREFIX) && jndiName.indexOf(':')
== -1) {
-            jndiName = CONTAINER_JNDI_RESOURCE_PATH_PREFIX + jndiName;
+            return CONTAINER_JNDI_RESOURCE_PATH_PREFIX + jndiName;
         }
         return jndiName;
     }



Mime
View raw message