You don't deprecate, the Java compiler for whatever version deprecates. How does the compiler know what to deprecate? How does the compiler know what is not deprecated? How does the complier know what is valid java code and how does it know what is not? The simple answer is that what compilers do!
Joined: Nov 22, 2008
Apu; Sorry I asked. Flippant remarks are only funny when you're right, and (IMO) not appropriate here even then. People come here to share knowledge, not to flame. I just went and found it myself, and it turns out there's a simple way to do it in any Java code, not just Sun's. Your answer has been @deprecated. jply