src/share/classes/java/lang/Package.java

Print this page

        

@@ -318,11 +318,11 @@
      * the classes.
      *
      * @param class the class to get the package of.
      * @return the package of the class. It may be null if no package
      *          information is available from the archive or codebase.  */
-    static Package getPackage(Class c) {
+    static Package getPackage(Class<?> c) {
         String name = c.getName();
         int i = name.lastIndexOf('.');
         if (i != -1) {
             name = name.substring(0, i);
             ClassLoader cl = c.getClassLoader();