From 0affb68053f3c63ed3904d7b853de715f4ed7ac7 Mon Sep 17 00:00:00 2001 From: David Craine Date: Mon, 29 Jul 2002 18:37:52 +0000 Subject: [PATCH] git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@550 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/test-data/UnusedFormalParam1.java | 2 ++ pmd/test-data/UnusedFormalParam2.java | 11 +++++++++++ pmd/test-data/UnusedFormalParam3.java | 5 +++++ 3 files changed, 18 insertions(+) create mode 100644 pmd/test-data/UnusedFormalParam2.java create mode 100644 pmd/test-data/UnusedFormalParam3.java diff --git a/pmd/test-data/UnusedFormalParam1.java b/pmd/test-data/UnusedFormalParam1.java index af8c6c88bc..705aaf4920 100644 --- a/pmd/test-data/UnusedFormalParam1.java +++ b/pmd/test-data/UnusedFormalParam1.java @@ -10,4 +10,6 @@ class UnusedFormalParam1 { private void t2(){ } + + } \ No newline at end of file diff --git a/pmd/test-data/UnusedFormalParam2.java b/pmd/test-data/UnusedFormalParam2.java new file mode 100644 index 0000000000..b17450168e --- /dev/null +++ b/pmd/test-data/UnusedFormalParam2.java @@ -0,0 +1,11 @@ +class UnusedFormalParam2 { + private void readObject (java.io.ObjectInputStream s) throws java.io.IOException + { + String str = s.readUTF (); + String[] args = null; + java.util.Properties props = null; + org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); + org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); + _set_delegate (delegate); + } +} \ No newline at end of file diff --git a/pmd/test-data/UnusedFormalParam3.java b/pmd/test-data/UnusedFormalParam3.java new file mode 100644 index 0000000000..87b12ec2da --- /dev/null +++ b/pmd/test-data/UnusedFormalParam3.java @@ -0,0 +1,5 @@ +class UnusedFormalParam3 { + private void t1(String s) { + s.toString(); + } +} \ No newline at end of file