JLS 9.6.4.6 says that no warning is emitted if the use of a deprecated element occurs within the same top-level type as that element.
JDeprScan doesn't currently do this analysis. It seems to have enough information to do so, and this would cut down on some noise. A test case should be added for this as well.
JDeprScan doesn't currently do this analysis. It seems to have enough information to do so, and this would cut down on some noise. A test case should be added for this as well.