Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
208 views
in Technique[技术] by (71.8m points)

java - Can Eclipse Be Used To Find All Deprecated Method Calls?

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...