From e7ec34ee653dbc62c686c2b55f74bfe6779a57ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Sotuyo=20Dodero?= Date: Mon, 18 Mar 2024 00:19:26 -0300 Subject: [PATCH] Add test case for #3627 --- .../rule/bestpractices/xml/UnusedPrivateMethod.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/bestpractices/xml/UnusedPrivateMethod.xml b/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/bestpractices/xml/UnusedPrivateMethod.xml index 83c79daf4e..38b4c3ea04 100644 --- a/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/bestpractices/xml/UnusedPrivateMethod.xml +++ b/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/bestpractices/xml/UnusedPrivateMethod.xml @@ -1832,6 +1832,18 @@ public class OuterClass { } } } +]]> + + + + #3627 FN with anonymous class + 1 +