< prev index next >

src/java.desktop/share/classes/sun/awt/FontConfiguration.java

Print this page

        

@@ -954,11 +954,13 @@
                     }
                 });
 
             if (fcc != null) {
                 try {
-                    fc = (Charset) fcc.newInstance();
+                    @SuppressWarnings("deprecation")
+                    Object tmp = fcc.newInstance();
+                    fc = (Charset) tmp;
                 } catch (Exception e) {
                 }
             }
         }
         if (fc == null) {
< prev index next >