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

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

*** 81,91 **** count++; } return count; } ! protected int setProperties(Hashtable props) { ImageConsumerQueue cq = null; int count = 0; while ((cq = nextConsumer(cq)) != null) { cq.consumer.setProperties(props); count++; --- 81,91 ---- count++; } return count; } ! protected int setProperties(Hashtable<?,?> props) { ImageConsumerQueue cq = null; int count = 0; while ((cq = nextConsumer(cq)) != null) { cq.consumer.setProperties(props); count++;
*** 162,172 **** public void abort() { aborted = true; source.doneDecoding(this); close(); java.security.AccessController.doPrivileged( ! new java.security.PrivilegedAction() { public Object run() { feeder.interrupt(); return null; } }); --- 162,172 ---- public void abort() { aborted = true; source.doneDecoding(this); close(); java.security.AccessController.doPrivileged( ! new java.security.PrivilegedAction<Object>() { public Object run() { feeder.interrupt(); return null; } });