mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
Fixes IDEA-176019 Trivial functional expression: do not inline if parameter produces side effect and evaluated not once Fixes EA-103938 (invalid PSI was used if inlining replaced the whole method) Fixes inlining of functional expression
11 lines
265 B
Java
11 lines
265 B
Java
// "Replace method call on lambda with lambda body" "true"
|
|
|
|
import java.util.function.Consumer;
|
|
import java.util.function.Predicate;
|
|
|
|
public class Main {
|
|
void test() {
|
|
((Consumer<Predicate<String>>) (x -> x.test("abc"))).ac<caret>cept(String::isEmpty);
|
|
}
|
|
}
|