Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 491 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 491 Bytes

ToolsTest

Used as a sample project to demonstrate how PMD works.

Use 'mvn pmd:check' to execute PMD.

This will build successfully. If you want to make it fail, just add a private global variable to App.java. For example make it like this.

public class App {

private String name;

public static void main(String[] args) {
    System.out.println("Hello World!");
}

}

Now PMD will detect String name as a dead variable (Unused variable) and make the build fail.