public static boolean checkMethodHasNonVoidReturnType ( final Method method ) { if ( method == null ) { return false ; } try { return ! ( Void . TYPE == method . getReturnType ( ) ) ; } catch ( Exception e ) { return false ; } }
Checks whether the passsed method has a non void return value .