Test Java 8 explicit receiver parameters.
See blog post Explicit receiver parameters by Stephen Colebourne
Run mvn checkstyle:check
Result: Build fails, because parsing of Main.java fails.
Run mvn pmd:check -Dpmd.verbose=true
Result: Build succeeds. But it shouldn't, because the empty if block is a PMD violation.
To demonstrate that the build should really fail:
- In Main.java comment out the Demo Block
- Run
mvn pmd:check
- Result: The build fails because the empty if block is a PMD violation