--- old/src/share/classes/com/sun/imageio/plugins/bmp/BMPImageReader.java 2014-02-05 11:39:02.102596132 -0800 +++ new/src/share/classes/com/sun/imageio/plugins/bmp/BMPImageReader.java 2014-02-05 11:39:01.899262790 -0800 @@ -680,7 +680,7 @@ gotHeader = true; } - public Iterator getImageTypes(int imageIndex) + public Iterator getImageTypes(int imageIndex) throws IOException { checkIndex(imageIndex); try { @@ -688,7 +688,7 @@ } catch (IllegalArgumentException e) { throw new IIOException(I18N.getString("BMPImageReader6"), e); } - ArrayList list = new ArrayList(1); + ArrayList list = new ArrayList<>(1); list.add(new ImageTypeSpecifier(originalColorModel, originalSampleModel)); return list.iterator();