On Sun, 14 Mar 2021 12:06:08 GMT, Alan Bateman <
[hidden email]> wrote:
>
>
> Have you looked at narrowing the use of the SuppressWarnings to local variable declarations to avoid adding it to some of these methods?
in all cases either:
- the class or method itself is being deprecated
- the method takes a deprecated arg .
- there is no local variable involved, such as testing if something is an instanceOf a class being deprecated, or calling a deprecated method.
I cannot find any instances where the scope can be narrowed
-------------
PR:
https://git.openjdk.java.net/jdk/pull/2920