Eclipse not showing deprecated warning?

爷,独闯天下 提交于 2019-12-06 01:41:48

Have a look at:

Preferences | Java | Compiler | Errors/Warnings | Deprecated and Restricted API

Make sure Deprecated API is set to Warning. Ensure the code which is deprecated has a @Deprecated annotation either at the class / method or in the JavaDoc.

Check for following:

Properties > Java > Compiler > Errors/Warnings > Deprecated and restricted API

Select Warning for Deprecated API.

You have to turned on warnings of your related project from project properties. To do this follow these steps:

  1. Right click on your project and go in project properties.
  2. Select Java Compiler tab and expand it.
  3. Now you see error/warning tab. Now enable that check box and change project setting.

or remove check box from project specific error/warnings settings and click on Android Lint Preferences tab and search for deprecated Serverity.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!