mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-08-14 08:25:44 +00:00
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user