mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WrapWithAdapterMethodCallFix: wrap with List.of() instead of Arrays.asList() on Java 9 and higher (IDEA-269380)
GitOrigin-RevId: f39f5c58348afb6b3c57dbc059860f940c6ec363
This commit is contained in:
committed by
intellij-monorepo-bot
parent
358da7cc4e
commit
223eeb0b0f
+13
@@ -0,0 +1,13 @@
|
||||
// "Wrap 4th argument using 'List.of()'" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Test {
|
||||
|
||||
void list(int i, int j, int k, List<String> l, String s) {
|
||||
|
||||
}
|
||||
|
||||
void m(String[] a) {
|
||||
list(1, 2, 3, List.of(a), "asd");
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Wrap argument using 'List.of()'" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Test {
|
||||
|
||||
void list(List<String> l) {
|
||||
|
||||
}
|
||||
|
||||
void m(String[] a) {
|
||||
list(List.of(a));
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Wrap 4th argument using 'List.of()'" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Test {
|
||||
|
||||
void list(int i, int j, int k, List<String> l, String s) {
|
||||
|
||||
}
|
||||
|
||||
void m(String[] a) {
|
||||
list(1, 2, 3, a<caret>, "asd");
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Wrap argument using 'List.of()'" "true"
|
||||
import java.util.List;
|
||||
|
||||
public class Test {
|
||||
|
||||
void list(List<String> l) {
|
||||
|
||||
}
|
||||
|
||||
void m(String[] a) {
|
||||
list(a<caret>);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user