Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.0-beta9
-
None
-
None
Description
The problem is the getComponent method. In Configuration, it's defined so:
<T> T getComponent(String name);
But in BaseConfiguration, it is overridden like this:
@Override public Object getComponent(final String name)
When I compile against log4j with lint, I get this warning:
[javac] public class MyConfiguration extends BaseConfiguration [javac] ^ [javac] return type requires unchecked conversion from Object to T [javac] where T is a type-variable: [javac] T extends Object declared in method <T>getComponent(String)