在调用getMethod的时候产生了编译警告:getMethod(String,Class<?>...)的调用未经过检查。
请问是什么原因?
解决了,去获取class type的时候需要使用泛型
如:
Class<?> b = a.getClass();