Simplify top-level class expression

Co-authored-by: Clément Fournier <clement.fournier@tu-dresden.de>
This commit is contained in:
Juan Martín Sotuyo Dodero
2023-02-25 13:46:30 -03:00
committed by GitHub
parent 057e02f279
commit 2b35ef2985

View File

@ -2351,7 +2351,7 @@ See the property `annotations`.
<property name="xpath">
<value>
<![CDATA[
let $topLevelClass := //ClassOrInterfaceDeclaration[@Nested= false() and @Local= false()] return
let $topLevelClass := /*/ClassOrInterfaceDeclaration return
let $isLombokUtility := exists($topLevelClass[pmd-java:hasAnnotation('lombok.experimental.UtilityClass')]) return
$topLevelClass[
(: non-instantiable :)