From 4acd5315cdfb972191db1fb7e642fb12f8b86afd Mon Sep 17 00:00:00 2001 From: aheritier Date: Thu, 2 Feb 2006 15:24:30 +0000 Subject: [PATCH] Create a very bad code git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@374407 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/org/apache/maven/Dummy.java | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) 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