commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1088071 - /commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/ResourceUtils.java
Date Sat, 02 Apr 2011 18:26:56 GMT
Author: simonetripodi
Date: Sat Apr  2 18:26:56 2011
New Revision: 1088071

URL: http://svn.apache.org/viewvc?rev=1088071&view=rev
Log:
fixed compiler warnings on generics

Modified:
    commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/ResourceUtils.java

Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/ResourceUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/ResourceUtils.java?rev=1088071&r1=1088070&r2=1088071&view=diff
==============================================================================
--- commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/ResourceUtils.java
(original)
+++ commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/ResourceUtils.java
Sat Apr  2 18:26:56 2011
@@ -45,7 +45,7 @@ public class ResourceUtils {
      * This means that calling Class.getPackage().getName()
      * is unreliable at best.
      */
-    public static String getPackageName(Class clazz) {
+    public static String getPackageName(Class<?> clazz) {
         Package clazzPackage = clazz.getPackage();
         String packageName;
         if (clazzPackage != null) {
@@ -69,7 +69,7 @@ public class ResourceUtils {
      * 
      * @param resourceName The name of the resource to load.
      */
-    public static Resource getResource(Class spi,
+    public static Resource getResource(Class<?> spi,
                                        String resourceName,
                                        ClassLoaders loaders)
         throws DiscoveryException
@@ -117,7 +117,7 @@ public class ResourceUtils {
      *            instantiated, or if the resulting class does not implement
      *            (or extend) the SPI.
      */    
-    public static Properties loadProperties(Class spi,
+    public static Properties loadProperties(Class<?> spi,
                                             String propertiesFileName,
                                             ClassLoaders classLoaders)
         throws DiscoveryException



Mime
View raw message