You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: qulice-pmd/src/main/resources/com/qulice/pmd/ruleset.xml
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -159,17 +159,15 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
159
159
]]></value>
160
160
</property>
161
161
</properties>
162
-
<example>
163
-
<![CDATA[
162
+
<example><![CDATA[
164
163
public final class DirectAccessToStaticFields {
165
164
private static int num = 1;
166
165
167
166
public static int number() {
168
167
return num;
169
168
}
170
169
}
171
-
]]>
172
-
</example>
170
+
]]></example>
173
171
</rule>
174
172
<rulename="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">
0 commit comments