public static boolean isVoid ( Type type ) { final Class < ? > cls = TypeFactory . defaultInstance ( ) . constructType ( type ) . getRawClass ( ) ; return Void . class . isAssignableFrom ( cls ) || Void . TYPE . isAssignableFrom ( cls ) ; }
Checks if the type is void .