PhpStorm 2019.2 Help

Code Inspection: Redundant suppression

Reports usages of

  • @SuppressWarning annotation, or

  • // noinspection line comment, or

  • /** noinspection */ JavaDoc comment

which can be safely removed because inspection they affect is no longer applicable in this context.

For example:

public class C { // symbol is already private, // but annotation is still around @SuppressWarnings({"WeakerAccess"}) private boolean CONST = true ; void f() { CONST = false ; } }

Last modified: 23 August 2019