Fix varargs warnings

Javac cannot tell if the getMethod and launchMethod uses here are
being done with varargs or not, so we need explicit casts to silence the
warning.
This commit is contained in:
T. Joseph Carter 2017-11-07 13:47:47 -08:00
parent f683bfc24c
commit 1880998892
1 changed files with 4 additions and 4 deletions

View File

@ -85,8 +85,8 @@ public class AppleCommander {
"com.webcodepro.applecommander.ui.swt.SwtAppleCommander"); //$NON-NLS-1$
Object object = swtAppleCommander.newInstance();
Method launchMethod = swtAppleCommander.
getMethod("launch", null); //$NON-NLS-1$
launchMethod.invoke(object, null);
getMethod("launch", (Class[])null); //$NON-NLS-1$
launchMethod.invoke(object, (Object[])null);
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (SecurityException e) {
@ -139,8 +139,8 @@ public class AppleCommander {
"com.webcodepro.applecommander.ui.swing.SwingAppleCommander"); //$NON-NLS-1$
Object object = swtAppleCommander.newInstance();
Method launchMethod = swtAppleCommander.
getMethod("launch", null); //$NON-NLS-1$
launchMethod.invoke(object, null);
getMethod("launch", (Class[])null); //$NON-NLS-1$
launchMethod.invoke(object, (Object[])null);
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (SecurityException e) {