From 48c2e325dc97bb283bc195181282d77bd764a3f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Sotuyo=20Dodero?= Date: Wed, 11 Sep 2024 19:01:33 -0300 Subject: [PATCH] Remove NBSP --- pmd-java/src/main/resources/category/java/errorprone.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pmd-java/src/main/resources/category/java/errorprone.xml b/pmd-java/src/main/resources/category/java/errorprone.xml index 3d5f1d84c1..0898f3ba7a 100644 --- a/pmd-java/src/main/resources/category/java/errorprone.xml +++ b/pmd-java/src/main/resources/category/java/errorprone.xml @@ -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)]]