When I compile thrid-party library a number of 'should be parameterized' warnings are generated. I know how to fix them but I do not want to so I tried to disable all warning/error in Eclipse. However, the warnings are still generated after every warning/error are disable. Please help.
You can add @SuppressWarnings("rawtypes")
to a method, statement or method argument to suppress this warning.
As an example a common one in Eclipse plugins is:
@Override
public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter)
You Can change the settings in eclipse:
如果您对由Class
对象建模的Class
的类型不感兴趣,则抑制或忽略警告的替代方法是使用<?>
表示法,如下所示: Class<?>
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.