I have a private methods in some low level classes that are not currently in use, but I don't want the "Method x is never used" warning potentially obscuring other more important warnings. I added a standard warning suppression for that method:
@SuppressWarnings("unused")
Up until recently that was working fine, no warning for that method. After upgrading to AS 4.1.1, however, these have started to get a "Redundant suppression" warning. If I remove the suppression the original unused warning comes back.
I'm using Android Studio 4.1.1 (Nov. 4)
Amusingly, I'm able to work around this by suppressing the suppression warning like so:
@SuppressWarnings({"unused", "RedundantSuppression"})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With