Add test case for #2536

This commit is contained in:
Clément Fournier committed 2021-07-12 17:38:11 +02:00
1 parent c2105d3385
commit c94bf66fc5
1 file changed
+11
@@ -135,4 +135,15 @@ class ClassWithOnlyPrivateConstructorsShouldBeFinal {
}
]]></code>
</test-code>
<test-code>
<description>#2536 [java] ClassWithOnlyPrivateConstructorsShouldBeFinal can't detect inner class with only private constructor</description>
<expected-problems>1</expected-problems>
<code><![CDATA[
public class Main209 {
private static class InputBits {
private InputBits(int number) { }
}
}
]]></code>
</test-code>
</test-data>