mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-69981 ("Redundant array creation" inspection does not warn on enum constant)
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
<problem>
|
||||
<file>Test.java</file>
|
||||
<line>3</line>
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Redundant array creation</problem_class>
|
||||
<description>Redundant array creation for calling varargs method</description>
|
||||
</problem>
|
||||
</problems>
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
|
||||
public enum Test {
|
||||
A(new String[]{"1", "2"});
|
||||
|
||||
Test(String... ss) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user