Skip to content

Commit

Permalink
Add test case for pmd#2536
Browse files Browse the repository at this point in the history
  • Loading branch information
oowekyala committed Jul 12, 2021
1 parent c2105d3 commit c94bf66
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit c94bf66

Please sign in to comment.