changeset 15300:196d2bbc11a2

8160736: KSS : unnecessary class.forName in TIFFJPEGCompressor.java Reviewed-by: prr, bpb, vadim Contributed-by: jayathirth.d.v@oracle.com
author jdv
date Tue, 02 Aug 2016 16:14:59 +0530
parents 577c700a570b
children f95446136b0d
files src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFJPEGCompressor.java
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFJPEGCompressor.java	Tue Aug 02 15:55:03 2016 +0530
+++ b/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()) {