Skip to content

Commit

Permalink
Remove NBSP
Browse files Browse the repository at this point in the history
  • Loading branch information
jsotuyod committed Sep 11, 2024
1 parent efa8757 commit 48c2e32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pmd-java/src/main/resources/category/java/errorprone.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2115,12 +2115,12 @@ $topLevelClass[
not(ClassBody/MethodDeclaration[($isLombokUtility or pmd-java:modifiers() = "static") and @Visibility != "private"]) and
(: … nor fields … :)
not(ClassBody/FieldDeclaration[($isLombokUtility or pmd-java:modifiers() = "static") and @Visibility != "private"]) and
(: … no nested classes, that are non-private and static … :)
(: … no nested classes, that are non-private and static … :)
not(ClassBody/ClassDeclaration
[pmd-java:modifiers() = "static" and @Visibility != "private"]
(: … with a default or non-private constructor … :)
(: … with a default or non-private constructor … :)
[not(ClassBody/ConstructorDeclaration) or ClassBody/ConstructorDeclaration[@Visibility != "private"]]
(: … and a non-private method returning the outer class type … :)
(: … and a non-private method returning the outer class type … :)
[(ClassBody/MethodDeclaration
[@Visibility != "private"]
[descendant::ReturnStatement/*[1][pmd-java:typeIs(ancestor::ClassDeclaration[@Nested = false()]/@BinaryName)]]
Expand Down

0 comments on commit 48c2e32

Please sign in to comment.