minor technical correction to documentation
This commit is contained in:
parent
1fd06d9c06
commit
2d1687465f
|
|
@ -502,7 +502,7 @@ public class MySingleton
|
|||
<td><span class="default">""</span>(empty)</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h4>Example</h4>
|
||||
<h4>Examples</h4>
|
||||
<p class="body">
|
||||
To configure the check to forbid String literals containing <span class="code">"a href"</span>:
|
||||
</p>
|
||||
|
|
@ -510,6 +510,18 @@ public class MySingleton
|
|||
<module name="IllegalTokenText">
|
||||
<property name="tokens" value="STRING_LITERAL"/>
|
||||
<property name="format" value="a href"/>
|
||||
</module>
|
||||
</pre>
|
||||
|
||||
<p class="body">
|
||||
To configure the check to forbid leading zeros in an integer literal, other than
|
||||
zero and a hex literal:
|
||||
</p>
|
||||
<pre class="body">
|
||||
<module name="IllegalTokenText">
|
||||
<property name="tokens" value="NUM_INT,NUM_LONG"/>
|
||||
<property name="format" value="^0[^lx]"/>
|
||||
<property name="ignoreCase" value="true"/>
|
||||
</module>
|
||||
</pre>
|
||||
<h4>Package</h4>
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ import com.puppycrawl.tools.checkstyle.checks.GenericIllegalRegexpCheck;
|
|||
* </module>
|
||||
* </pre>
|
||||
* <p> An example of how to configure the check to forbid leading zeros in an
|
||||
* integer literal, other than a hex value is:
|
||||
* integer literal, other than zero and a hex literal is:
|
||||
* <pre>
|
||||
* <module name="IllegalTokenText">
|
||||
* <property name="tokens" value="NUM_INT,NUM_LONG"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue