logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1405192 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/ResolverUtil.java
Date Fri, 02 Nov 2012 22:27:32 GMT
Author: ggregory
Date: Fri Nov  2 22:27:32 2012
New Revision: 1405192

URL: http://svn.apache.org/viewvc?rev=1405192&view=rev
Log:
Unnecessary cast from Class to Class<T>

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/ResolverUtil.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/ResolverUtil.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/ResolverUtil.java?rev=1405192&r1=1405191&r2=1405192&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/ResolverUtil.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/ResolverUtil.java
Fri Nov  2 22:27:32 2012
@@ -384,7 +384,7 @@ public class ResolverUtil<T> {
 
                 Class type = loader.loadClass(externalName);
                 if (test.matches(type)) {
-                    classMatches.add((Class<T>) type);
+                    classMatches.add(type);
                 }
             }
             if (test.doesMatchResource()) {



Mime
View raw message