mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
WrapArrayToArraysAsListFix, WrapLongWithMathToIntExactFix, WrapStringWithFileFix are united into WrapWithAdapterMethodCallFix. Also Paths.get(), Collections.singleton(), Collections.singletonList(), Arrays.stream() wrappers added Fixes IDEA-175129 Suggest to wrap a value with `Collections.singleton*()`
14 lines
192 B
Java
14 lines
192 B
Java
// "Wrap parameter using 'new File()'" "true"
|
|
import java.io.File;
|
|
|
|
class Test {
|
|
|
|
void m() {
|
|
readFile(new File("my.txt"));
|
|
}
|
|
|
|
static String readFile(File f) {
|
|
return null;
|
|
}
|
|
|
|
} |