mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-23 16:20:55 +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
20 lines
289 B
Java
20 lines
289 B
Java
import org.jetbrains.annotations.NotNull;
|
|
|
|
class X {
|
|
public static String main(String[] args) {
|
|
return newMethod();
|
|
|
|
}
|
|
|
|
@NotNull
|
|
private static String newMethod() {
|
|
System.out.println();
|
|
return f();
|
|
}
|
|
|
|
@NotNull
|
|
String f() {
|
|
return "";
|
|
}
|
|
}
|