1.@SuppressWarnings("unchecked") 屏蔽某些编译时的警告信息 ,在强制类型转换的时候编译器会给出警告 ,加上程序代码 @SuppressWarnings("unchecked")就不会警告了 2.