I have a java.lang.reflect.Method object and I would like to know if it\'s return type is void.
java.lang.reflect.Method
void
I\'ve checked the Javadocs and there is a
There is another, perhaps less conventional way:
public boolean doesReturnVoid(Method method) { if (void.class.equals(method.getReturnType())) return true; }