Example:
Thread t = new Thread();
t.start();
t.stop();
Can separately configure whether or not to flag deprecated methods called by deprecated code, and overriding and/or implementing of deprecated methods.
Problem because:
Sometimes deprecated methods don't work quite right (e.g. Thread.stop()
).
Deprecation messages confuse novices and itch experts.
Helps to educate programmers about API changes
Severity: minimal:
Most deprecated methods and fields are just fine.
The compiler will catch this anyway.
Sun will never remove deprecated API.