| 121 |
In <font color="#3366FF">1.4</font>, <font color="#3366FF"><I>assert</I></font> is treated as a keyword.</td> |
In <font color="#3366FF">1.4</font>, <font color="#3366FF"><I>assert</I></font> is treated as a keyword.</td> |
| 122 |
</tr> |
</tr> |
| 123 |
<tr> |
<tr> |
| 124 |
<td valign=top>-warn: <blockquote>constructorName<br>|packageDefaultMethod<br>|deprecation<br>|maskedCatchBlocks<br>|unusedLocals<br>|unusedArguments<br>|unusedImports<br>|syntheticAccess<br>|assertIdentifier</blockquote> |
<td valign=top>-warn: <blockquote>constructorName<br>|packageDefaultMethod<br>|deprecation<br>|maskedCatchBlocks<br>|unusedLocals<br>|unusedArguments<br>|unusedImports<br>|syntheticAccess<br>|assertIdentifier<br>|allDeprecation<br>|nls<br>|staticReceiver<br>|noEffectAssign<br>|noImplicitStringConversion<br>|tasks(<task1>|...|<taskN>)</blockquote> |
| 125 |
</td> |
</td> |
| 126 |
<td>Set warning level.<br>e.g. <font color="#3366FF">-warn:unusedLocals,deprecation</font><br> |
<td valign=top>Set warning level.<br>e.g. <font color="#3366FF">-warn:unusedLocals,deprecation</font><br> |
| 127 |
<table> |
<table> |
| 128 |
<tr> |
<tr> |
| 129 |
<th align=left>constructorName</th> |
<th align=left valign=top>constructorName</th> |
| 130 |
<td>warn method with constructor name</td> |
<td valign=top>warn method with constructor name</td> |
| 131 |
</tr> |
</tr> |
| 132 |
<tr> |
<tr> |
| 133 |
<th align=left>packageDefaultMethod</th> |
<th align=left valign=top>packageDefaultMethod</th> |
| 134 |
<td>warn attempt to override package-default method</td> |
<td valign=top>warn attempt to override package-default method</td> |
| 135 |
</tr> |
</tr> |
| 136 |
<tr> |
<tr> |
| 137 |
<th align=left>deprecation</th> |
<th align=left valign=top>deprecation</th> |
| 138 |
<td>warn usage of deprecated type or member</td> |
<td valign=top>warn usage of deprecated type or member</td> |
| 139 |
</tr> |
</tr> |
| 140 |
<tr> |
<tr> |
| 141 |
<th align=left>maskedCatchBlocks</th> |
<th align=left valign=top>maskedCatchBlocks</th> |
| 142 |
<td>warn hidden catch block</td> |
<td valign=top>warn hidden catch block</td> |
| 143 |
</tr> |
</tr> |
| 144 |
<tr> |
<tr> |
| 145 |
<th align=left>unusedLocals</th> |
<th align=left valign=top>unusedLocals</th> |
| 146 |
<td>warn unused local variable</td> |
<td valign=top>warn unused local variable</td> |
| 147 |
</tr> |
</tr> |
| 148 |
<tr> |
<tr> |
| 149 |
<th align=left>unusedArguments</th> |
<th align=left valign=top>unusedArguments</th> |
| 150 |
<td>warn unused method argument</td> |
<td valign=top>warn unused method argument</td> |
| 151 |
</tr> |
</tr> |
| 152 |
<tr> |
<tr> |
| 153 |
<th align=left>unusedImports</th> |
<th align=left valign=top>unusedImports</th> |
| 154 |
<td>When enabled, the compiler will issue an error or a warning for unused import reference |
<td valign=top>When enabled, the compiler will issue an error or a warning for unused import reference |
| 155 |
</td> |
</td> |
| 156 |
</tr> |
</tr> |
| 157 |
<tr> |
<tr> |
| 158 |
<th align=left>syntheticAccess</th> |
<th align=left valign=top>syntheticAccess</th> |
| 159 |
<td>warn when performing synthetic access for innerclass</td> |
<td valign=top>warn when performing synthetic access for innerclass</td> |
| 160 |
</tr> |
</tr> |
| 161 |
<tr> |
<tr> |
| 162 |
<th align=left>assertIdentifier</th> |
<th align=left valign=top>assertIdentifier</th> |
| 163 |
<td>warn occurrence of <i>assert</i> used as identifier</td> |
<td valign=top>warn occurrence of <i>assert</i> used as identifier</td> |
| 164 |
|
</tr> |
| 165 |
|
<tr> |
| 166 |
|
<th align=left valign=top>allDeprecation</th> |
| 167 |
|
<td valign=top>warn for deprecation even in deprecated code</td> |
| 168 |
|
</tr> |
| 169 |
|
<tr> |
| 170 |
|
<th align=left valign=top>nls</th> |
| 171 |
|
<td>warn non-nls string literals (lacking of tags //$NON-NLS-<n>)</td> |
| 172 |
|
</tr> |
| 173 |
|
<tr> |
| 174 |
|
<th align=left valign=top>staticReceiver</th> |
| 175 |
|
<td valign=top>warn if a non static receiver is used to get a static field or call a static method</td> |
| 176 |
|
</tr> |
| 177 |
|
<tr> |
| 178 |
|
<th align=left valign=top>noEffectAssign</th> |
| 179 |
|
<td valign=top>warn for assignment with no effect</td> |
| 180 |
|
</tr> |
| 181 |
|
<tr> |
| 182 |
|
<th align=left valign=top>noImplicitStringConversion</th> |
| 183 |
|
<td valign=top>warn when a char array is used in a string concatenation without being converted explicitely to |
| 184 |
|
a string</td> |
| 185 |
|
</tr> |
| 186 |
|
<tr> |
| 187 |
|
<th align=left valign=top>tasks</th> |
| 188 |
|
<td valign=top>enable support for tasks tags in source code</td> |
| 189 |
</tr> |
</tr> |
| 190 |
</table> |
</table> |
| 191 |
</td> |
</td> |