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,18 +79,18 @@
* <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 =
+ 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;
+ protected Class<?>[] inputTypes = null;
/**
* An array of strings to be returned from
* <code>getImageWriterSpiNames</code>, initially
* <code>null</code>.
@@ -99,11 +99,11 @@
/**
* The <code>Class</code> of the reader, initially
* <code>null</code>.
*/
- private Class readerClass = null;
+ 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,11 +195,11 @@
String version,
String[] names,
String[] suffixes,
String[] MIMETypes,
String readerClassName,
- Class[] inputTypes,
+ Class<?>[] inputTypes,
String[] writerSpiNames,
boolean supportsStandardStreamMetadataFormat,
String nativeStreamMetadataFormatName,
String nativeStreamMetadataFormatClassName,
String[] extraStreamMetadataFormatNames,
@@ -252,11 +252,11 @@
* returned.
*
* @return a non-<code>null</code> array of
* <code>Class</code>objects of length at least 1.
*/
- public Class[] getInputTypes() {
+ public Class<?>[] getInputTypes() {
return inputTypes.clone();
}
/**
* Returns <code>true</code> if the supplied source object appears