< prev index next >
src/java.desktop/share/classes/sun/font/FontManagerFactory.java
Print this page
@@ -77,12 +77,13 @@
try {
String fmClassName =
System.getProperty("sun.font.fontmanager",
DEFAULT_CLASS);
ClassLoader cl = ClassLoader.getSystemClassLoader();
- Class<?> fmClass = Class.forName(fmClassName, true, cl);
- instance = (FontManager) fmClass.newInstance();
+ @SuppressWarnings("deprecation")
+ Object fmObject = Class.forName(fmClassName, true, cl).newInstance();
+ instance = (FontManager) fmObject;
} catch (ClassNotFoundException |
InstantiationException |
IllegalAccessException ex) {
throw new InternalError(ex);
< prev index next >