src/share/classes/javax/swing/plaf/basic/BasicLookAndFeel.java

Print this page

        

*** 1859,1869 **** /** * Returns the ui that is of type <code>klass</code>, or null if * one can not be found. */ ! static Object getUIOfType(ComponentUI ui, Class klass) { if (klass.isInstance(ui)) { return ui; } return null; } --- 1859,1869 ---- /** * Returns the ui that is of type <code>klass</code>, or null if * one can not be found. */ ! static Object getUIOfType(ComponentUI ui, Class<?> klass) { if (klass.isInstance(ui)) { return ui; } return null; }