logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1432079 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/ResolverUtil.java
Date Fri, 11 Jan 2013 14:57:44 GMT
Author: ggregory
Date: Fri Jan 11 14:57:43 2013
New Revision: 1432079

URL: http://svn.apache.org/viewvc?rev=1432079&view=rev
Log:
Generics.

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=1432079&r1=1432078&r2=1432079&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 Jan 11 14:57:43 2013
@@ -139,7 +139,7 @@ public class ResolverUtil<T> {
      * @param parent the class of interface to find subclasses or implementations of
      * @param packageNames one or more package names to scan (including subpackages) for
classes
      */
-    public void findImplementations(final Class parent, final String... packageNames) {
+    public void findImplementations(final Class<?> parent, final String... packageNames)
{
         if (packageNames == null) {
             return;
         }
@@ -449,7 +449,7 @@ public class ResolverUtil<T> {
      * Test against a resource.
      */
     public abstract static class ResourceTest implements Test {
-        public boolean matches(final Class cls) {
+        public boolean matches(final Class<?> cls) {
             throw new UnsupportedOperationException();
         }
 
@@ -480,7 +480,7 @@ public class ResolverUtil<T> {
          * @param type The Class to check.
          * @return true if the Class matches.
          */
-        public boolean matches(final Class type) {
+        public boolean matches(final Class<?> type) {
             return type != null && parent.isAssignableFrom(type);
         }
 
@@ -507,7 +507,7 @@ public class ResolverUtil<T> {
          * @param type The Class to check.
          * @return true if the Class matches.
          */
-        public boolean matches(final Class type) {
+        public boolean matches(final Class<?> type) {
             return type != null && type.getName().endsWith(suffix);
         }
 
@@ -537,7 +537,7 @@ public class ResolverUtil<T> {
          * @param type the Class to match against.
          * @return true if the Classes match.
          */
-        public boolean matches(final Class type) {
+        public boolean matches(final Class<?> type) {
             return type != null && type.isAnnotationPresent(annotation);
         }
 



Mime
View raw message