8160736: KSS : unnecessary class.forName in TIFFJPEGCompressor.java
Reviewed-by: prr, bpb, vadim
Contributed-by: jayathirth.d.v@oracle.com
--- a/jdk/src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFJPEGCompressor.java Tue Aug 02 15:55:03 2016 +0530
+++ b/jdk/src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFJPEGCompressor.java Tue Aug 02 16:14:59 2016 +0530
@@ -79,10 +79,8 @@
try {
IIORegistry registry = IIORegistry.getDefaultInstance();
- Class<?> imageReaderClass =
- Class.forName("javax.imageio.spi.ImageReaderSpi");
Iterator<?> readerSPIs =
- registry.getServiceProviders(imageReaderClass,
+ registry.getServiceProviders(ImageReaderSpi.class,
new JPEGSPIFilter(),
true);
if(readerSPIs.hasNext()) {