diff --git a/pmd/src/plugin-test/src/main/org/apache/maven/Dummy.java b/pmd/src/plugin-test/src/main/org/apache/maven/Dummy.java index b966b0c8..4622c83f 100644 --- a/pmd/src/plugin-test/src/main/org/apache/maven/Dummy.java +++ b/pmd/src/plugin-test/src/main/org/apache/maven/Dummy.java @@ -1,6 +1,21 @@ package org.apache.maven; -public class Dummy -{ - public String badChecky = "error"; -} \ No newline at end of file +import java.lang.*; + +public class Dummy { + public String badChecky = "error"; + + private String unusedField = "Foo"; + + public Dummy() { + if (true) { + try { + ; + } catch (Throwable t) { + } + } + } + + private void unusedMethod() { + } +} \ No newline at end of file