PMD Results

The following document contains the results of PMD 7.17.0.

Violations By Priority

Priority 3

org/apache/maven/doxia/site/inheritance/URIPathDescriptor.java

Rule Violation Line
SimplifiedTernary This conditional expression can be simplified with || or && 197

Priority 4

org/apache/maven/doxia/site/SiteUtils.java

Rule Violation Line
UselessParentheses Useless parentheses around `str == null && prefix == null`. 38

org/apache/maven/doxia/site/inheritance/URIPathDescriptor.java

Rule Violation Line
UselessParentheses Useless parentheses around `newBaseURI.getScheme() == null ? false : baseUR...`. 197
UselessParentheses Useless parentheses around `baseURI.getHost() == null ? newBaseURI.getHost(...`. 198200
UselessParentheses Useless parentheses around `baseURI.getPort() == newBaseURI.getPort()`. 201
UselessParentheses Useless parentheses around `sameScheme && samePort && sameHost`. 203

Files

org/apache/maven/doxia/site/SiteUtils.java

Rule Violation Priority Line
UselessParentheses Useless parentheses around `str == null && prefix == null`. 4 38

org/apache/maven/doxia/site/inheritance/URIPathDescriptor.java

Rule Violation Priority Line
SimplifiedTernary This conditional expression can be simplified with || or && 3 197
UselessParentheses Useless parentheses around `newBaseURI.getScheme() == null ? false : baseUR...`. 4 197
UselessParentheses Useless parentheses around `baseURI.getHost() == null ? newBaseURI.getHost(...`. 4 198200
UselessParentheses Useless parentheses around `baseURI.getPort() == newBaseURI.getPort()`. 4 201
UselessParentheses Useless parentheses around `sameScheme && samePort && sameHost`. 4 203