Add test case for #3627

This commit is contained in:
Juan Martín Sotuyo Dodero 2024-03-18 00:19:26 -03:00
parent 07850f3423
commit e7ec34ee65

View File

@ -1832,6 +1832,18 @@ public class OuterClass {
}
}
}
]]></code>
</test-code>
<test-code>
<description>#3627 FN with anonymous class</description>
<expected-problems>1</expected-problems>
<code><![CDATA[
public class Tester {
Object anonymousClass = new Object() {
private void foo() {} // unused, should report a warning
};
}
]]></code>
</test-code>
</test-data>