src/share/classes/java/awt/image/ReplicateScaleFilter.java

Print this page

        

*** 119,128 **** --- 119,129 ---- * this class to filter pixels from an image should avoid calling * this method directly since that operation could interfere * with the filtering operation. */ public void setProperties(Hashtable<?,?> props) { + @SuppressWarnings("unchecked") Hashtable<Object,Object> p = (Hashtable<Object,Object>)props.clone(); String key = "rescale"; String val = destWidth + "x" + destHeight; Object o = p.get(key); if (o != null && o instanceof String) {