< prev index next >
src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java
Print this page
*** 1092,1102 ****
try {
Class<?> c = Class.forName(className, true,Thread.currentThread().
getContextClassLoader());
if (methodName == null) {
! return c.newInstance();
}
Method m = c.getMethod(methodName, (Class<?>[])null);
return m.invoke(c, (Object[])null);
} catch (ClassNotFoundException cnfe) {
--- 1092,1104 ----
try {
Class<?> c = Class.forName(className, true,Thread.currentThread().
getContextClassLoader());
if (methodName == null) {
! @SuppressWarnings("deprecation")
! Object result = c.newInstance();
! return result;
}
Method m = c.getMethod(methodName, (Class<?>[])null);
return m.invoke(c, (Object[])null);
} catch (ClassNotFoundException cnfe) {
< prev index next >