src/share/classes/sun/awt/image/ToolkitImage.java
Print this page
rev 9830 : 8039642: Fix raw and unchecked warnings in sun.awt.*
Reviewed-by: darcy, prr
*** 77,87 ****
return source;
}
private int width = -1;
private int height = -1;
! private Hashtable properties;
private int availinfo;
/**
* Return the width of the original image source.
--- 77,87 ----
return source;
}
private int width = -1;
private int height = -1;
! private Hashtable<?, ?> properties;
private int availinfo;
/**
* Return the width of the original image source.
*** 252,264 ****
width = w;
height = h;
addInfo(ImageObserver.WIDTH | ImageObserver.HEIGHT);
}
! void setProperties(Hashtable props) {
if (props == null) {
! props = new Hashtable();
}
properties = props;
addInfo(ImageObserver.PROPERTIES);
}
--- 252,264 ----
width = w;
height = h;
addInfo(ImageObserver.WIDTH | ImageObserver.HEIGHT);
}
! void setProperties(Hashtable<?, ?> props) {
if (props == null) {
! props = new Hashtable<String, Object>();
}
properties = props;
addInfo(ImageObserver.PROPERTIES);
}