This commit is regarding the addition of the since and the externalInfo URL and update the message to be more descriptive.

This commit is contained in:
hemanshu070
2018-12-23 20:04:43 +05:30
parent 8810e58a31
commit 5b6ac1b2fb

View File

@ -1812,8 +1812,10 @@ public class Foo {
<rule name="UseDiamondOperator"
language="java"
message="Use diamond operator"
since="6.11.0"
message="Explicit type arguments can be replaced by Diamond Operator "
class="net.sourceforge.pmd.lang.rule.XPathRule"
externalInfoUrl="${pmd.website.baseurl}/pmd_rules_java_codestyle.html#usediamondoperator"
minimumLanguageVersion="1.7">
<description>Use the diamond operator to let the type be inferred</description>
<priority>1</priority>