mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +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
231 B
Java
11 lines
231 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() {
|
|
((Predicate<String>) String::isEmpty).test("abc");
|
|
}
|
|
}
|