WrapWithAdapterMethodCallFix: wrap with List.of() instead of Arrays.asList() on Java 9 and higher (IDEA-269380)

GitOrigin-RevId: f39f5c58348afb6b3c57dbc059860f940c6ec363
This commit is contained in:
Bas Leijdekkers
2021-05-16 10:41:03 +02:00
committed by intellij-monorepo-bot
parent 358da7cc4e
commit 223eeb0b0f
34 changed files with 121 additions and 77 deletions

View File

@@ -1,4 +1,4 @@
// "Wrap parameter using 'Path.of()'" "true"
// "Wrap argument using 'Path.of()'" "true"
import java.nio.file.*;
class Test {

View File

@@ -1,10 +0,0 @@
// "Wrap parameter using 'Paths.get()'" "false"
import java.nio.file.*;
class Test {
void m() {
Files.readString("path");
}
}

View File

@@ -1,4 +1,4 @@
// "Wrap parameter using 'Path.of()'" "true"
// "Wrap argument using 'Path.of()'" "true"
import java.nio.file.*;
class Test {

View File

@@ -1,4 +1,4 @@
// "Wrap parameter using 'Paths.get()'" "false"
// "Wrap argument using 'Paths.get()'" "false"
import java.nio.file.*;
class Test {