< prev index next >
src/com/sun/interview/wizard/Wizard.java
Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg
@@ -112,11 +112,11 @@
*/
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
- Class ic = (Class.forName(args[0], true, ClassLoader.getSystemClassLoader()));
+ Class<?> ic = Class.forName(args[0], true, ClassLoader.getSystemClassLoader());
Interview i = (Interview)(ic.newInstance());
Wizard w = new Wizard(i);
w.showInFrame(true);
}
catch (Throwable e) {
@@ -544,11 +544,11 @@
* Invoke a performXXX method via reflection
* @param s The name of the method to be invoked.
*/
private void perform(String s) {
try {
- Method m = Wizard.class.getDeclaredMethod(s, new Class[] { });
+ Method m = Wizard.class.getDeclaredMethod(s, new Class<?>[] { });
m.invoke(Wizard.this, new Object[] { });
}
catch (IllegalAccessException ex) {
System.err.println(s);
ex.printStackTrace();
< prev index next >