赞
踩
去除警告:
Type safety: The method add(Object) belongs to the raw type Set. References to generic type Set<E> should be parameterized
在方法添加:
@SuppressWarnings("unchecked")
去除警告:
Set is a raw type. References to generic type Set<E> should be parameterized
用:
@SuppressWarnings("rawtypes")
两个都用,要用:
@SuppressWarnings({"unchecked","rawtypes"})
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。