mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 23:20:57 +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
26 lines
407 B
Java
26 lines
407 B
Java
import java.util.*;
|
|
|
|
class Test {
|
|
public void foo() {
|
|
List trades = newMethod();
|
|
|
|
|
|
//probably not assigned !!!
|
|
if (trades.isEmpty()) {
|
|
}
|
|
}
|
|
|
|
private List newMethod() {
|
|
List trades;
|
|
try {
|
|
trades = getTrades();
|
|
}
|
|
catch (RemoteException e) {
|
|
}
|
|
return trades;
|
|
}
|
|
|
|
static class RemoteException extends Exception {
|
|
}
|
|
}
|