src/share/classes/sun/awt/image/JPEGImageDecoder.java
Print this page
rev 9717 : 8039642: Fix raw and unchecked warnings in sun.awt.*
Reviewed-by:
*** 45,56 ****
public class JPEGImageDecoder extends ImageDecoder {
private static ColorModel RGBcolormodel;
private static ColorModel ARGBcolormodel;
private static ColorModel Graycolormodel;
! private static final Class InputStreamClass = InputStream.class;
! private static native void initIDs(Class InputStreamClass);
private ColorModel colormodel;
static {
java.security.AccessController.doPrivileged(
--- 45,56 ----
public class JPEGImageDecoder extends ImageDecoder {
private static ColorModel RGBcolormodel;
private static ColorModel ARGBcolormodel;
private static ColorModel Graycolormodel;
! private static final Class<?> InputStreamClass = InputStream.class;
! private static native void initIDs(Class<?> InputStreamClass);
private ColorModel colormodel;
static {
java.security.AccessController.doPrivileged(
*** 71,81 ****
}
private native void readImage(InputStream is, byte buf[])
throws ImageFormatException, IOException;
! Hashtable props = new Hashtable();
public JPEGImageDecoder(InputStreamImageSource src, InputStream is) {
super(src, is);
}
--- 71,81 ----
}
private native void readImage(InputStream is, byte buf[])
throws ImageFormatException, IOException;
! Hashtable<String, Object> props = new Hashtable<>();
public JPEGImageDecoder(InputStreamImageSource src, InputStream is) {
super(src, is);
}