mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 00:50:53 +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
18 lines
384 B
Java
18 lines
384 B
Java
import java.util.*;
|
|
class Test {
|
|
|
|
public void method() {
|
|
String a = "A";
|
|
newMethod(a);
|
|
|
|
ArrayList<String> listB = new ArrayList<String>();
|
|
ArrayList<String> listC = new ArrayList<String>();
|
|
listB.add("B");
|
|
listC.add("C");
|
|
}
|
|
|
|
private void newMethod(String a) {
|
|
ArrayList<String> listA = new ArrayList<String>();
|
|
listA.add(a);
|
|
}
|
|
} |