Deprecated warnings within deprecated code

B

Barney Barumba

Eclipse has a really nice option "Signal use of deprecated API within
deprecated code." Turning this off removes warnings generated within
deprecated code, and only warns you when you cross the boundary into
deprecated land.

Specifically, I've implemented the java.sql.ResultSet interface and
have had to provide implementations of the deprecated getBigDecimal
and getUnicodeStream methods. I've tagged these implementations as
deprecated and never call them from within my code.

Using the above option in Eclipse removes the warnings for these
implementation methods unless I call them, but still generates
warnings for all called deprecated methods.

Is there any way of replicating this behaviour in the standard 1.4
compiler (j2sdk1.4.1_01), or does Eclipse just remove the warnings
itself somehow?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top