logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1391598 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
Date Fri, 28 Sep 2012 19:05:03 GMT
Author: ggregory
Date: Fri Sep 28 19:05:02 2012
New Revision: 1391598

URL: http://svn.apache.org/viewvc?rev=1391598&view=rev
Log:
Remove unnecessary cast from Logger to Logger.

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

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java?rev=1391598&r1=1391597&r2=1391598&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/LoggerContext.java
Fri Sep 28 19:05:02 2012
@@ -189,7 +189,7 @@ public class LoggerContext implements or
             return logger;
         }
 
-        logger = (Logger) newInstance(this, name);
+        logger = newInstance(this, name);
         Logger prev = loggers.putIfAbsent(name, logger);
         return prev == null ? logger : prev;
     }



Mime
View raw message