diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-07-05 14:30:42 +0600 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-07-05 14:38:28 +0600 |
commit | 0269bb49efbbad8d4375122400cf47042d283457 (patch) | |
tree | 6874da30aa1078b122a3c3a57da86dd8d2395180 | |
parent | 1bab9db0c398f5fc7571409e4ae4967c45c5c855 (diff) | |
download | sonarqube-0269bb49efbbad8d4375122400cf47042d283457.tar.gz sonarqube-0269bb49efbbad8d4375122400cf47042d283457.zip |
SONAR-3624 Fix typos in PMD XPath rule template
-rw-r--r-- | plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/pmd/rules/pmd/XPathRule.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/pmd/rules/pmd/XPathRule.html b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/pmd/rules/pmd/XPathRule.html index ac388e34948..2199e3c7103 100644 --- a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/pmd/rules/pmd/XPathRule.html +++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/pmd/rules/pmd/XPathRule.html @@ -1,20 +1,20 @@ PMD provides a very handy method for creating new rules by writing an XPath query. When the XPath query finds a match, a violation is created. - Let's take a simple example : assume we have a Factory class that must be always declared final. - We'd like to report a violation each time a declaration of Factory is not declared final. Consider the following class: : +Let's take a simple example: assume we have a Factory class that must be always declared final. +We'd like to report a violation each time a declaration of Factory is not declared final. Consider the following class: <pre> public class a { - Factory f1; + Factory f1; - void myMethod() { - Factory f2; - int a; - } + void myMethod() { + Factory f2; + int a; + } } </pre> - The following expression does the magic we need: +The following expression does the magic we need: <pre> //VariableDeclarator [../Type/ReferenceType/ClassOrInterfaceType [@Image = 'Factory'] and ..[@Final='false']] </pre> - See the <a href="http://pmd.sourceforge.net/xpathruletutorial.html">XPath rule tutorial</a> for more information.
\ No newline at end of file +See the <a href="http://pmd.sourceforge.net/xpathruletutorial.html" target="_blank">XPath rule tutorial</a> for more information. |