< prev index next >

src/java.desktop/share/classes/javax/swing/JEditorPane.java

Print this page

        

*** 1195,1205 **** } else { // Will only happen if developer has invoked // registerEditorKitForContentType(type, class, null). c = SwingUtilities.loadSystemClass(classname); } ! k = (EditorKit) c.newInstance(); kitRegistry.put(type, k); } catch (Throwable e) { k = null; } } --- 1195,1207 ---- } else { // Will only happen if developer has invoked // registerEditorKitForContentType(type, class, null). c = SwingUtilities.loadSystemClass(classname); } ! @SuppressWarnings("deprecation") ! Object tmp = c.newInstance(); ! k = (EditorKit) tmp; kitRegistry.put(type, k); } catch (Throwable e) { k = null; } }
< prev index next >