From 2a8cf167b9847b72b57d1a4cc6e85843691322ba Mon Sep 17 00:00:00 2001 From: Romain Pelisse Date: Tue, 2 Dec 2008 11:11:46 +0000 Subject: [PATCH] Remove useless addons in the Eclipse 's .classpath file. git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6735 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/.classpath | 2 -- .../unusedcode/xml/UnusedLocalVariable.xml | 19 +++++++++++++++++++ .../unusedcode/xml/UnusedPrivateMethod.xml | 19 +++++++++++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-) diff --git a/pmd/.classpath b/pmd/.classpath index c5c3556a7e..6e980dfe74 100644 --- a/pmd/.classpath +++ b/pmd/.classpath @@ -6,8 +6,6 @@ - - diff --git a/pmd/regress/test/net/sourceforge/pmd/rules/unusedcode/xml/UnusedLocalVariable.xml b/pmd/regress/test/net/sourceforge/pmd/rules/unusedcode/xml/UnusedLocalVariable.xml index c3870465b4..6b8d5d446e 100644 --- a/pmd/regress/test/net/sourceforge/pmd/rules/unusedcode/xml/UnusedLocalVariable.xml +++ b/pmd/regress/test/net/sourceforge/pmd/rules/unusedcode/xml/UnusedLocalVariable.xml @@ -306,4 +306,23 @@ public class Foo { } ]]> + + + 0 + T doSomething(Object param){ + return (T) param; + } + + public static void main(String[] args) { + PMDFalsePositiveTest test = new PMDFalsePositiveTest(); + Object o = "Awesome!"; + String result = test.doSomething(o); + System.out.println(result); + } +} + ]]> + diff --git a/pmd/regress/test/net/sourceforge/pmd/rules/unusedcode/xml/UnusedPrivateMethod.xml b/pmd/regress/test/net/sourceforge/pmd/rules/unusedcode/xml/UnusedPrivateMethod.xml index 46afa65611..c9cbf4dbcb 100644 --- a/pmd/regress/test/net/sourceforge/pmd/rules/unusedcode/xml/UnusedPrivateMethod.xml +++ b/pmd/regress/test/net/sourceforge/pmd/rules/unusedcode/xml/UnusedPrivateMethod.xml @@ -341,4 +341,23 @@ public class Foo { } ]]> + + + 0 + T doSomething(Object param){ + return (T) param; + } + + public static void main(String[] args) { + PMDFalsePositiveTest test = new PMDFalsePositiveTest(); + Object o = "Awesome!"; + String result = test.doSomething(o); + System.out.println(result); + } +} + ]]> +