mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 01:09:46 +07:00
[java-analysis] LambdaUtil.isSafeLambdaReplacement: check all calls in-between; check applicability
Fixes IDEA-350194 Inspection QuickFix results in compilation error GitOrigin-RevId: fb83bfcb4e4aef9dc87a5c84de6d08202dd52ec6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
00b2e6cb16
commit
5ae32b3ec9
@@ -0,0 +1,10 @@
|
||||
// "Replace lambda with method reference" "false"
|
||||
import java.util.*;
|
||||
import java.util.stream.*;
|
||||
|
||||
class Test {
|
||||
void test() {
|
||||
Set<String> lorem = Collections.unmodifiableSet(Stream.of("Lorem")
|
||||
.collect(Collectors.toCollection(() -> new TreeSet<<caret>>())));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user