IDEA-228553 - added negative test on Paths.get

GitOrigin-RevId: 9062c575d25649c9d3a271c2387227e7e578d0a0
This commit is contained in:
Ilyas Selimov
2020-05-29 13:33:24 +03:00
committed by intellij-monorepo-bot
parent 19dd38caa1
commit 07acc2a679
3 changed files with 20 additions and 1 deletions
@@ -0,0 +1,10 @@
// "Wrap parameter using 'Paths.get()'" "false"
import java.nio.file.*;
class Test {
void m() {
Files.readString("path");
}
}
@@ -1,5 +1,4 @@
// "Wrap parameter using 'Path.of()'" "true"
// "Wrap parameter using 'Paths.get()'" "false"
import java.nio.file.*;
class Test {
@@ -0,0 +1,10 @@
// "Wrap parameter using 'Paths.get()'" "false"
import java.nio.file.*;
class Test {
void m() {
Files.readString("<caret>path");
}
}