--- old/src/share/classes/com/sun/imageio/plugins/bmp/BMPImageWriter.java 2014-02-14 16:24:18.727341400 -0800 +++ new/src/share/classes/com/sun/imageio/plugins/bmp/BMPImageWriter.java 2014-02-14 16:24:18.570674730 -0800 @@ -1325,10 +1325,10 @@ ImageWriteParam bmpParam) throws IOException { String format = compressionType == BI_JPEG ? "jpeg" : "png"; - Iterator iterator = ImageIO.getImageWritersByFormatName(format); + Iterator iterator = ImageIO.getImageWritersByFormatName(format); ImageWriter writer = null; if (iterator.hasNext()) - writer = (ImageWriter)iterator.next(); + writer = iterator.next(); if (writer != null) { if (embedded_stream == null) { throw new RuntimeException("No stream for writing embedded image!");