On 27 November 2016 at 21:18, Philippe Mouawad
<[email protected]> wrote:
> Hello,
> Looking for Deprecated code in JMeter to make some cleanup, I noticed that
> we have a lot of classes with default Constructors marked as Deprecated for
> Unit Test only.
>
> Couldn't we find a better way to do that and avoid using deprecated for
> that ?

What's wrong with using deprecated?

The advantage is that it's immediately obvious in main code.
Test code often needs to continue to test deprecated methods, so it's
OK to suppress deprecated warnings.
Whereas it's (almost) never right to suppress a deprecation warning in
main code.

> --
> Regards.
> Philippe

Reply via email to