mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 20:39:40 +07:00
Before when removing more than one element, nextLeaf was invalid as well. The invalidation check below did not work as parent might still exist (element might be relinked to dummy file) Fixes IDEA-187531 "Add on demand static import" with intervening comment and an empty line breaks code
15 lines
316 B
Java
15 lines
316 B
Java
import java.util.function.Consumer;
|
|
|
|
class Test {
|
|
void foo(String s) {
|
|
if (true) {
|
|
Consumer<String> stringConsumer = s1 -> {
|
|
System.out.println("Hello, world " + s1);
|
|
System.out.println();
|
|
};
|
|
stringConsumer.accept(s);
|
|
|
|
System.out.println();
|
|
}
|
|
}
|
|
} |