Can Eclipse Be Used To Find All Deprecated Method Calls?

后端 未结 3 1013
面向向阳花
面向向阳花 2020-12-14 15:58

Does Eclipse have a feature that lets you search a project to find all calls to deprecated methods?

3条回答
  •  温柔的废话
    2020-12-14 16:25

    You can set the compiler to generate errors or warnings (your choice) for any usage of deprecated API.

    Preferences -> Java -> Compiler -> Errors/Warnings -> Deprecated and restricted API section.

    Then, each use of a deprecated method or API will show up as an error/warning in the Problems view.

提交回复
热议问题