minor technical correction to documentation

This commit is contained in:
Rick Giles 2003-08-02 15:57:55 +00:00
parent 1fd06d9c06
commit 2d1687465f
2 changed files with 14 additions and 2 deletions

View File

@ -502,7 +502,7 @@ public class MySingleton
<td><span class="default">&quot;&quot;</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">&quot;a href&quot;</span>:
</p>
@ -510,6 +510,18 @@ public class MySingleton
&lt;module name=&quot;IllegalTokenText&quot;&gt;
&lt;property name=&quot;tokens&quot; value=&quot;STRING_LITERAL&quot;/&gt;
&lt;property name=&quot;format&quot; value=&quot;a href&quot;/&gt;
&lt;/module&gt;
</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">
&lt;module name=&quot;IllegalTokenText&quot;&gt;
&lt;property name=&quot;tokens&quot; value=&quot;NUM_INT,NUM_LONG&quot;/&gt;
&lt;property name=&quot;format&quot; value=&quot;^0[^lx]&quot;/&gt;
&lt;property name=&quot;ignoreCase&quot; value=&quot;true&quot;/&gt;
&lt;/module&gt;
</pre>
<h4>Package</h4>

View File

@ -38,7 +38,7 @@ import com.puppycrawl.tools.checkstyle.checks.GenericIllegalRegexpCheck;
* &lt;/module&gt;
* </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>
* &lt;module name="IllegalTokenText"&gt;
* &lt;property name="tokens" value="NUM_INT,NUM_LONG"/&gt;