Removed an unchecked cast.

This commit is contained in:
Harald Kuhr
2017-11-05 09:58:27 +01:00
parent c2dd99286c
commit 6b966a2d4f
11 changed files with 15 additions and 18 deletions

View File

@@ -29,7 +29,6 @@
package com.twelvemonkeys.imageio.plugins.thumbsdb;
import com.twelvemonkeys.imageio.spi.ImageReaderSpiBase;
import com.twelvemonkeys.imageio.util.IIOUtil;
import com.twelvemonkeys.io.ole2.CompoundDocument;
import javax.imageio.ImageReader;
@@ -80,7 +79,7 @@ public final class ThumbsDBImageReaderSpi extends ImageReaderSpiBase {
// and the lookup below will produce a NPE..
if (jpegProvider == null) {
// Prefer the one we know
ImageReaderSpi provider = lookupProviderByName(IIORegistry.getDefaultInstance(), "com.sun.imageio.plugins.jpeg.JPEGImageReaderSpi");
ImageReaderSpi provider = lookupProviderByName(IIORegistry.getDefaultInstance(), "com.sun.imageio.plugins.jpeg.JPEGImageReaderSpi", ImageReaderSpi.class);
if (provider == null) {
try {