Skip to content

Commit 5786b29

Browse files
committed
Migrate rule from PMD 7 to PMD 6
1 parent e50ceb4 commit 5786b29

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

codestyle/sdk_specific_pmd_rules.xml

+4-3
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,10 @@
458458
<property name="xpath">
459459
<value>
460460
<![CDATA[
461-
//ClassOrInterfaceDeclaration[@Visibility="public"]/ClassOrInterfaceBody/FieldDeclaration[
462-
not(VariableDeclarator[@Initializer="true" and VariableDeclaratorId[@Final="true"]]) and
463-
not(ModifierList/Annotation[@SimpleName="Nonnull" or @SimpleName="Nullable"])
461+
//ClassOrInterfaceDeclaration[@Public=true()]/ClassOrInterfaceBody/ClassOrInterfaceBodyDeclaration[
462+
@Kind='FIELD' and
463+
not(FieldDeclaration[@Final=true() and VariableDeclarator/VariableInitializer]) and
464+
not(./Annotation/MarkerAnnotation/Name[@Image='Nullable' or @Image='Nonnull'])
464465
]
465466
]]>
466467
</value>

0 commit comments

Comments
 (0)