< prev index next >
src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java
Print this page
@@ -1092,11 +1092,13 @@
try {
Class<?> c = Class.forName(className, true,Thread.currentThread().
getContextClassLoader());
if (methodName == null) {
- return c.newInstance();
+ @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 >