mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
disable "actual param is the same constant" for vararg calls (IDEA-192148)
accept single argument calls but disable the fix as array wrapping is not supported
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems></problems>
|
||||
<problems/>
|
||||
|
||||
|
||||
@@ -10,4 +10,20 @@ public class Test {
|
||||
public static void main(String[] args){
|
||||
new Test().bar();
|
||||
}
|
||||
}
|
||||
class AnotherDiiferentVarargs {
|
||||
private static final String TEXT = "text";
|
||||
private static final String ANOTHER_TEXT = "another text";
|
||||
|
||||
public static void main(String[] args) {
|
||||
printString(TEXT, "optional");
|
||||
printString(ANOTHER_TEXT);
|
||||
}
|
||||
|
||||
private static void printString(String input, String... attrs) {
|
||||
System.out.println(input);
|
||||
for (String string : attrs) {
|
||||
System.out.println(string);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user