correct check for void type

This commit is contained in:
Eugene Zhuravlev
2015-10-08 18:12:48 +02:00
parent ddc65e6f0c
commit 8246250014
@@ -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;
}