How to determine by reflection if a Method returns 'void'

前端 未结 5 1287
滥情空心
滥情空心 2021-02-03 16:36

I have a java.lang.reflect.Method object and I would like to know if it\'s return type is void.

I\'ve checked the Javadocs and there is a

5条回答
提交回复
热议问题