src/share/classes/javax/imageio/spi/ImageWriterSpi.java
Print this page
rev 9345 : 8035487: Fix raw and unchecked lint warnings in javax.imageio.spi
Reviewed-by:
@@ -81,18 +81,18 @@
* <code>getOutputTypes</code>.
* @deprecated Instead of using this field, directly create
* the equivalent array <code>{ ImageOutputStream.class }</code>.
*/
@Deprecated
- public static final Class[] STANDARD_OUTPUT_TYPE =
+ public static final Class<?>[] STANDARD_OUTPUT_TYPE =
{ ImageOutputStream.class };
/**
* An array of <code>Class</code> objects to be returned from
* <code>getOutputTypes</code>, initially <code>null</code>.
*/
- protected Class[] outputTypes = null;
+ protected Class<?>[] outputTypes = null;
/**
* An array of strings to be returned from
* <code>getImageReaderSpiNames</code>, initially
* <code>null</code>.
@@ -101,11 +101,11 @@
/**
* The <code>Class</code> of the writer, initially
* <code>null</code>.
*/
- private Class writerClass = null;
+ private Class<?> writerClass = null;
/**
* Constructs a blank <code>ImageWriterSpi</code>. It is up to
* the subclass to initialize instance variables and/or override
* method implementations in order to provide working versions of
@@ -196,11 +196,11 @@
String version,
String[] names,
String[] suffixes,
String[] MIMETypes,
String writerClassName,
- Class[] outputTypes,
+ Class<?>[] outputTypes,
String[] readerSpiNames,
boolean supportsStandardStreamMetadataFormat,
String nativeStreamMetadataFormatName,
String nativeStreamMetadataFormatClassName,
String[] extraStreamMetadataFormatNames,
@@ -265,11 +265,11 @@
* returned.
*
* @return a non-<code>null</code> array of
* <code>Class</code>objects of length at least 1.
*/
- public Class[] getOutputTypes() {
+ public Class<?>[] getOutputTypes() {
return outputTypes.clone();
}
/**
* Returns <code>true</code> if the <code>ImageWriter</code>