Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 730 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 730 Bytes

maven-jxr-plugin Example Project

This project demonstrates the issue with maven-jxr-plugin and classes with multiple @SuppressWarnings annotations.

My Environment

  • Windows 10 Pro
  • JDK 11 (or 17 or 20)
  • Maven v3.9.5
  • maven-jxr-plugin v3.3.1

Building the project

mvn clean verify site

Results

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"})