[OpenJDK 2D-Dev] [9] RFR JDK-8160736 : KSS : unnecessary class.forName in TIFFJPEGCompressor.java
Vadim Pakhnushev
vadim.pakhnushev at oracle.com
Mon Aug 1 17:19:11 UTC 2016
Why not just registry.getServiceProviders(ImageReaderSpi.class, ?
Vadim
On 01.08.2016 19:13, Jayathirth D V wrote:
>
> Hi,
>
> Please review the following fix in JDK9 at your convenience :
>
> Bug : https://bugs.openjdk.java.net/browse/JDK-8160736
>
> Webrev : http://cr.openjdk.java.net/~jdv/8160736/webrev.00/
> <http://cr.openjdk.java.net/%7Ejdv/8160736/webrev.00/>
>
> Root Cause : KSS tool has detected usage of class.forName where it can
> be avoided.
>
> Solution : Use <Classname.class> instead of using class.forName.
>
> Thanks,
>
> Jay
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20160801/c8a58c0a/attachment.html>
More information about the 2d-dev
mailing list