mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-21 22:11:40 +07:00
WrapWithAdapterMethodCallFix replaces individual cases
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*()`
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// "Wrap using 'Arrays.stream()'" "true"
|
||||
import java.util.*;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class Test {
|
||||
Stream<String> testStream(List<String[]> list) {
|
||||
return list.<caret>get(0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user