src/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java
Print this page
*** 380,390 ****
/**
* 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;
}
--- 380,390 ----
/**
* 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;
}