Merge pull request #5 from iKarith/master

Fix varargs warnings
This commit is contained in:
A2 Geek 2017-11-08 12:38:58 -06:00 committed by GitHub
commit 5cdcaa63e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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