src/share/classes/javax/imageio/ImageTypeSpecifier.java

Print this page
rev 9344 : 8034998: Fix raw and unchecked lint warnings in javax.imageio
Reviewed-by: darcy, prr

@@ -1073,11 +1073,11 @@
             WritableRaster raster =
                 Raster.createWritableRaster(sampleModel,
                                             new Point(0, 0));
             return new BufferedImage(colorModel, raster,
                                      colorModel.isAlphaPremultiplied(),
-                                     new Hashtable());
+                                     new Hashtable<>());
         } catch (NegativeArraySizeException e) {
             // Exception most likely thrown from a DataBuffer constructor
             throw new IllegalArgumentException
                 ("Array size > Integer.MAX_VALUE!");
         }