[java] ArrayIsStoredDirectly: Add test case for #1413

This commit is contained in:
Andreas Dangel
2024-04-05 15:58:19 +02:00
parent 9b0c7dc3eb
commit 7da809b462

View File

@ -330,4 +330,21 @@ class TestArrayIsStoredDirectly {
]]></code>
</test-code>
<test-code>
<description>[java] ArrayIsStoredDirectly at enum constructor #1413</description>
<expected-problems>0</expected-problems>
<code><![CDATA[
public enum DemoEnum {
VAL1("str1", "str2"),
VAL2("str3");
private final String[] values;
DemoEnum(String... values) {
this.values = values;
}
}
]]></code>
</test-code>
</test-data>