IDEADEV-42031 (Sporadic failures on subversion project update). do not write credenti...
[fedora-idea.git] / resources-en / src / inspectionDescriptions / RedundantSuppression.html
blob11b69081855cce7f48c3ba798352749a9a7a781a
1 <html>
2 <body>
3 <font face="verdana" size="-1">This inspection reports usages of
4 <ul>
5 <li><code>@SuppressWarning</code> annotation, or</li>
6 <li><code>// noinspection</code> line comment, or</li>
7 <li><code>/** noinspection */</code> JavaDoc comment</li>
8 </ul>
10 which can be safely removed because inspection they affect is no longer applicable in this context.
11 <p>
12 For example:
13 <code><pre>
14 <b><font color="#000080">public class</font></b> C {
15 // symbol is already private,
16 // but annotation is still around
17 @SuppressWarnings({"WeakerAccess"})
18 <b><font color="#000080">private boolean</font></b> CONST = <b><font color="#000080">true</font></b>;
19 <b><font color="#000080">void</font></b> f() {
20 CONST = <b><font color="#000080">false</font></b>;
23 </pre></code>
25 </font>
26 </body>
27 </html>