This project demonstrates the issue with maven-jxr-plugin and classes with
multiple @SuppressWarnings
annotations.
- Windows 10 Pro
- JDK 11 (or 17 or 20)
- Maven v3.9.5
- maven-jxr-plugin v3.3.1
mvn clean verify site
The resulting Source Xref page lists the classes Name
and NameLoader
,
but does not include NameFormatter
. Name
has no @SuppressWarnings
annotation, and NameLoader
has a single @SuppressWarnings
annotation.
NameFormatter
has multiple warning suppressions in the form:
@SuppressWarnings({"PMD.AvoidLiteralsInIfCondition", "PMD.OnlyOneReturn", "PMD.LiteralsFirstInComparisons"})