mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-21 05:51:25 +07:00
IDEA-228553 - added intention action to wrap string literal by Path.of
GitOrigin-RevId: a3c3b43e9421375c6cd4e8d1980d7a13ea392167
This commit is contained in:
committed by
intellij-monorepo-bot
parent
dced5078cb
commit
286820138e
@@ -0,0 +1,10 @@
|
||||
// "Wrap parameter using 'Paths.get()'" "true"
|
||||
import java.nio.file.*;
|
||||
|
||||
class Test {
|
||||
|
||||
void m() {
|
||||
Files.readString(Paths.get("path"));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Wrap parameter using 'Path.of()'" "true"
|
||||
import java.nio.file.*;
|
||||
|
||||
class Test {
|
||||
|
||||
void m() {
|
||||
Files.readString(Path.of("path"));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Wrap parameter using 'Paths.get()'" "true"
|
||||
import java.nio.file.*;
|
||||
|
||||
class Test {
|
||||
|
||||
void m() {
|
||||
Files.readString("<caret>path");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Wrap parameter using 'Path.of()'" "true"
|
||||
import java.nio.file.*;
|
||||
|
||||
class Test {
|
||||
|
||||
void m() {
|
||||
Files.readString("<caret>path");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user