logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpo...@apache.org
Subject svn commit: r1552971 - in /logging/log4j/log4j2/trunk: log4j-core/src/main/java/org/apache/logging/log4j/core/config/BaseConfiguration.java src/changes/changes.xml
Date Sun, 22 Dec 2013 07:48:34 GMT
Author: rpopma
Date: Sun Dec 22 07:48:34 2013
New Revision: 1552971

URL: http://svn.apache.org/r1552971
Log:
Fix for Log4j2-472: BaseConfiguration class does not properly implement Configuration interface.

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

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/BaseConfiguration.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/BaseConfiguration.java?rev=1552971&r1=1552970&r2=1552971&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/BaseConfiguration.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/BaseConfiguration.java
Sun Dec 22 07:48:34 2013
@@ -23,7 +23,6 @@ import java.lang.reflect.Method;
 import java.lang.reflect.Modifier;
 import java.util.ArrayList;
 import java.util.Collections;
-import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
@@ -226,9 +225,10 @@ public class BaseConfiguration extends A
         }
     }
 
+    @SuppressWarnings("unchecked")
     @Override
-    public Object getComponent(final String name) {
-        return componentMap.get(name);
+    public <T> T getComponent(final String name) {
+        return (T) componentMap.get(name);
     }
 
     @Override

Modified: logging/log4j/log4j2/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/changes/changes.xml?rev=1552971&r1=1552970&r2=1552971&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/src/changes/changes.xml (original)
+++ logging/log4j/log4j2/trunk/src/changes/changes.xml Sun Dec 22 07:48:34 2013
@@ -21,6 +21,9 @@
   </properties>
   <body>
     <release version="2.0-RC1" date="2013-MM-DD" description="Bug fixes and enhancements">
+      <action issue="LOG4J2-472" dev="rpopma" type="fix" due-to="Tal Liron">
+        BaseConfiguration class does not properly implement Configuration interface.
+      </action>
       <action issue="LOG4J2-447" dev="ggregory" type="fix" due-to="Jeff Hudren, Mark Paluch,
Scott Deboy">
         XMLLayout does not include marker name.
       </action>



Mime
View raw message