src/share/classes/com/sun/imageio/plugins/bmp/BMPImageReader.java

Print this page
rev 9343 : 8033716: Fix raw and unchecked lint warnings in com.sun.imageio
Reviewed-by: darcy, prr, bae

*** 678,696 **** iis.reset(); iis.skipBytes(bitmapOffset); gotHeader = true; } ! public Iterator getImageTypes(int imageIndex) throws IOException { checkIndex(imageIndex); try { readHeader(); } catch (IllegalArgumentException e) { throw new IIOException(I18N.getString("BMPImageReader6"), e); } ! ArrayList list = new ArrayList(1); list.add(new ImageTypeSpecifier(originalColorModel, originalSampleModel)); return list.iterator(); } --- 678,696 ---- iis.reset(); iis.skipBytes(bitmapOffset); gotHeader = true; } ! public Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex) throws IOException { checkIndex(imageIndex); try { readHeader(); } catch (IllegalArgumentException e) { throw new IIOException(I18N.getString("BMPImageReader6"), e); } ! ArrayList<ImageTypeSpecifier> list = new ArrayList<>(1); list.add(new ImageTypeSpecifier(originalColorModel, originalSampleModel)); return list.iterator(); }
*** 910,919 **** --- 910,920 ---- default: throw new IIOException(I18N.getString("BMPImageReader1")); } + break; case VERSION_4_8_BIT: switch((int)compression) { case BI_RGB: