Applied Vadim's XML escape patch

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2245 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2003-09-10 14:23:19 +00:00
parent 2a38d677e9
commit c63aac1c6a
2 changed files with 13 additions and 16 deletions

View File

@ -38,7 +38,7 @@
</subsection>
<subsection name="Contributors">
<ul>
<li>Vadim Nasardinov - run.sh cleanup</li>
<li>Vadim Nasardinov - xdocs cleanup, run.sh cleanup</li>
<li>Sreenivasa Viswanadha - grammar cleanup for Ctrl-Z problem</li>
<li>Sigiswald Madou - bug report</li>
<li>Dan Tullis - bug report</li>

View File

@ -190,31 +190,28 @@ public class WhileLoopsMustUseBracesRule extends AbstractRule {
</ul>
<p>The whole ruleset file should look something like this:</p>
<source>
<![CDATA[
<?xml version="1.0"?>
<rule name="WhileLoopsMustUseBracesRule"
&lt;?xml version="1.0"?>
&lt;rule name="WhileLoopsMustUseBracesRule"
message="Avoid using 'while' statements without curly braces"
class="net.sourceforge.pmd.rules.XPathRule">
<description>
&lt;description>
Avoid using 'while' statements without using curly braces
</description>
<priority>3</priority>
<example>
&lt;/description>
&lt;priority>3&lt;/priority>
&lt;example>
&lt;![CDATA[
public void doSomething() {
while (true)
x++;
}
]]&gt;
&lt;/example>
&lt;/rule>
&lt;/ruleset>
</example>
</rule>
</ruleset>
]]>
</source>
<p>OK, well, it won't look exactly like that - you'll need to wrap
the example in a CDATA tag. But I couldn't figure out how to do that without Maven getting confused.
If you know how to do this, please let me know.</p>
</subsection>
<subsection name="Run PMD using your new ruleset">