src/share/classes/sun/awt/image/OffScreenImageSource.java

Print this page
rev 9717 : 8039642: Fix raw and unchecked warnings in sun.awt.*
Reviewed-by:

*** 38,56 **** public class OffScreenImageSource implements ImageProducer { BufferedImage image; int width; int height; ! Hashtable properties; public OffScreenImageSource(BufferedImage image, ! Hashtable properties) { this.image = image; if (properties != null) { this.properties = properties; } else { ! this.properties = new Hashtable(); } width = image.getWidth(); height = image.getHeight(); } --- 38,56 ---- public class OffScreenImageSource implements ImageProducer { BufferedImage image; int width; int height; ! Hashtable<?, ?> properties; public OffScreenImageSource(BufferedImage image, ! Hashtable<?, ?> properties) { this.image = image; if (properties != null) { this.properties = properties; } else { ! this.properties = new Hashtable<String, Object>(); } width = image.getWidth(); height = image.getHeight(); }