src/share/classes/javax/imageio/spi/ImageReaderSpi.java

Print this page
rev 9345 : 8035487: Fix raw and unchecked lint warnings in javax.imageio.spi
Reviewed-by:

*** 79,96 **** * <code>getInputTypes</code>. * @deprecated Instead of using this field, directly create * the equivalent array <code>{ ImageInputStream.class }</code>. */ @Deprecated ! public static final Class[] STANDARD_INPUT_TYPE = { ImageInputStream.class }; /** * An array of <code>Class</code> objects to be returned from * <code>getInputTypes</code>, initially <code>null</code>. */ ! protected Class[] inputTypes = null; /** * An array of strings to be returned from * <code>getImageWriterSpiNames</code>, initially * <code>null</code>. --- 79,96 ---- * <code>getInputTypes</code>. * @deprecated Instead of using this field, directly create * the equivalent array <code>{ ImageInputStream.class }</code>. */ @Deprecated ! public static final Class<?>[] STANDARD_INPUT_TYPE = { ImageInputStream.class }; /** * An array of <code>Class</code> objects to be returned from * <code>getInputTypes</code>, initially <code>null</code>. */ ! protected Class<?>[] inputTypes = null; /** * An array of strings to be returned from * <code>getImageWriterSpiNames</code>, initially * <code>null</code>.
*** 99,109 **** /** * The <code>Class</code> of the reader, initially * <code>null</code>. */ ! private Class readerClass = null; /** * Constructs a blank <code>ImageReaderSpi</code>. It is up to * the subclass to initialize instance variables and/or override * method implementations in order to provide working versions of --- 99,109 ---- /** * The <code>Class</code> of the reader, initially * <code>null</code>. */ ! private Class<?> readerClass = null; /** * Constructs a blank <code>ImageReaderSpi</code>. It is up to * the subclass to initialize instance variables and/or override * method implementations in order to provide working versions of
*** 195,205 **** String version, String[] names, String[] suffixes, String[] MIMETypes, String readerClassName, ! Class[] inputTypes, String[] writerSpiNames, boolean supportsStandardStreamMetadataFormat, String nativeStreamMetadataFormatName, String nativeStreamMetadataFormatClassName, String[] extraStreamMetadataFormatNames, --- 195,205 ---- String version, String[] names, String[] suffixes, String[] MIMETypes, String readerClassName, ! Class<?>[] inputTypes, String[] writerSpiNames, boolean supportsStandardStreamMetadataFormat, String nativeStreamMetadataFormatName, String nativeStreamMetadataFormatClassName, String[] extraStreamMetadataFormatNames,
*** 252,262 **** * returned. * * @return a non-<code>null</code> array of * <code>Class</code>objects of length at least 1. */ ! public Class[] getInputTypes() { return inputTypes.clone(); } /** * Returns <code>true</code> if the supplied source object appears --- 252,262 ---- * returned. * * @return a non-<code>null</code> array of * <code>Class</code>objects of length at least 1. */ ! public Class<?>[] getInputTypes() { return inputTypes.clone(); } /** * Returns <code>true</code> if the supplied source object appears