src/share/classes/sun/awt/image/ImagingLib.java

Print this page
rev 9717 : 8039642: Fix raw and unchecked warnings in sun.awt.*
Reviewed-by:

*** 59,69 **** private static final int NUM_NATIVE_OPS = 3; private static final int LOOKUP_OP = 0; private static final int AFFINE_OP = 1; private static final int CONVOLVE_OP = 2; ! private static Class[] nativeOpClass = new Class[NUM_NATIVE_OPS]; /** * Returned value indicates whether the library initailization was * succeded. * --- 59,69 ---- private static final int NUM_NATIVE_OPS = 3; private static final int LOOKUP_OP = 0; private static final int AFFINE_OP = 1; private static final int CONVOLVE_OP = 2; ! private static Class<?>[] nativeOpClass = new Class<?>[NUM_NATIVE_OPS]; /** * Returned value indicates whether the library initailization was * succeded. *
*** 132,142 **** System.err.println("Could not find class: "+e); } } ! private static int getNativeOpIndex(Class opClass) { // // Search for this class in cached list of // classes supplying native acceleration // int opIndex = -1; --- 132,142 ---- System.err.println("Could not find class: "+e); } } ! private static int getNativeOpIndex(Class<?> opClass) { // // Search for this class in cached list of // classes supplying native acceleration // int opIndex = -1;