< prev index next >

src/java.desktop/share/classes/sun/java2d/cmm/CMSManager.java

Print this page

        

*** 54,65 **** GetPropertyAction gpa = new GetPropertyAction("sun.java2d.cmm"); String cmmProviderClass = AccessController.doPrivileged(gpa); CMMServiceProvider provider = null; if (cmmProviderClass != null) { try { ! Class<?> cls = Class.forName(cmmProviderClass); ! provider = (CMMServiceProvider)cls.newInstance(); } catch (ReflectiveOperationException e) { } } if (provider == null) { provider = new sun.java2d.cmm.lcms.LcmsServiceProvider(); --- 54,66 ---- GetPropertyAction gpa = new GetPropertyAction("sun.java2d.cmm"); String cmmProviderClass = AccessController.doPrivileged(gpa); CMMServiceProvider provider = null; if (cmmProviderClass != null) { try { ! @SuppressWarnings("deprecation") ! Object o = Class.forName(cmmProviderClass).newInstance(); ! provider = (CMMServiceProvider)o; } catch (ReflectiveOperationException e) { } } if (provider == null) { provider = new sun.java2d.cmm.lcms.LcmsServiceProvider();
< prev index next >