src/share/classes/javax/imageio/ImageWriter.java
Print this page
rev 9293 : 8034998: Fix raw and unchecked lint warnings in javax.imageio
Reviewed-by:
*** 1962,1975 ****
* accessed via the applet class loader. So first try the context
* class loader to locate the resource bundle.
* If that throws MissingResourceException, then try the
* system class loader.
*/
! ClassLoader loader = (ClassLoader)
java.security.AccessController.doPrivileged(
! new java.security.PrivilegedAction() {
! public Object run() {
return Thread.currentThread().getContextClassLoader();
}
});
ResourceBundle bundle = null;
--- 1962,1975 ----
* accessed via the applet class loader. So first try the context
* class loader to locate the resource bundle.
* If that throws MissingResourceException, then try the
* system class loader.
*/
! ClassLoader loader =
java.security.AccessController.doPrivileged(
! new java.security.PrivilegedAction<ClassLoader>() {
! public ClassLoader run() {
return Thread.currentThread().getContextClassLoader();
}
});
ResourceBundle bundle = null;