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