mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
method duplicates: pass array 2 vararg method call ( IDEA-53635)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class Test {
|
||||
public void printArray(String... p) {
|
||||
System.out.println(p[0]);
|
||||
System.out.println(p[1]);
|
||||
}
|
||||
|
||||
public void doSmth() {
|
||||
String[] arr = {"smth1", "smth2", "smth3"};
|
||||
printArray(arr);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user