src/share/classes/sun/java2d/cmm/lcms/LCMS.java

Print this page
rev 9629 : 8038644: Fix raw and unchecked warnings in sun.java2d.*
Reviewed-by:

@@ -187,11 +187,11 @@
     public static native void colorConvert(LCMSTransform trans,
                                            LCMSImageLayout src,
                                            LCMSImageLayout dest);
     public static native void freeTransform(long ID);
 
-    public static native void initLCMS(Class Trans, Class IL, Class Pf);
+    public static native void initLCMS(Class<?> Trans, Class<?> IL, Class<?> Pf);
 
     private LCMS() {};
 
     private static LCMS theLcms = null;
 

@@ -199,11 +199,11 @@
         if (theLcms != null) {
             return theLcms;
         }
 
         java.security.AccessController.doPrivileged(
-                new java.security.PrivilegedAction() {
+                new java.security.PrivilegedAction<Object>() {
                     public Object run() {
                         /* We need to load awt here because of usage trace and
                          * disposer frameworks
                          */
                         System.loadLibrary("awt");