--- a/jdk/src/share/classes/com/sun/imageio/plugins/bmp/BMPImageReader.java Fri Feb 21 10:03:49 2014 -0800
+++ b/jdk/src/share/classes/com/sun/imageio/plugins/bmp/BMPImageReader.java Fri Feb 21 15:28:37 2014 -0800
@@ -680,7 +680,7 @@
gotHeader = true;
}
- public Iterator getImageTypes(int imageIndex)
+ public Iterator<ImageTypeSpecifier> 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<ImageTypeSpecifier> list = new ArrayList<>(1);
list.add(new ImageTypeSpecifier(originalColorModel,
originalSampleModel));
return list.iterator();
@@ -912,6 +912,7 @@
throw new
IIOException(I18N.getString("BMPImageReader1"));
}
+ break;
case VERSION_4_8_BIT:
switch((int)compression) {