mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
correct check for void type
This commit is contained in:
@@ -135,7 +135,7 @@ public class AppMain {
|
||||
System.err.println("main method should be static");
|
||||
return;
|
||||
}
|
||||
if (!Void.class.isInstance(m.getReturnType())) {
|
||||
if (!void.class.isAssignableFrom(m.getReturnType())) {
|
||||
System.err.println("main method must return a value of type void");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user