Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Java 8 explicit receiver parameters.

See blog post Explicit receiver parameters by Stephen Colebourne

Test with Checkstyle

Run mvn checkstyle:check

Result: Build fails, because parsing of Main.java fails.

Test with PMD

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:

  1. In Main.java comment out the Demo Block
  2. Run mvn pmd:check
  3. Result: The build fails because the empty if block is a PMD violation

About

Test Java 8 explicit receiver parameters

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages