Skip to content

Commit

Permalink
[yegor256#1198] format ruleset.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
pnatashap committed Mar 12, 2024
1 parent 44d7fc9 commit d67c662
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions qulice-pmd/src/main/resources/com/qulice/pmd/ruleset.xml
Expand Up @@ -159,17 +159,15 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
]]></value>
</property>
</properties>
<example>
<![CDATA[
<example><![CDATA[
public final class DirectAccessToStaticFields {
private static int num = 1;
public static int number() {
return num;
}
}
]]>
</example>
]]></example>
</rule>
<rule name="AvoidAccessToStaticMembersViaThis" message="Static members should be accessed in a static way [CLASS_NAME.FIELD_NAME], not via instance reference." language="java" class="net.sourceforge.pmd.lang.rule.XPathRule">
<description>
Expand Down

0 comments on commit d67c662

Please sign in to comment.