mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-20 03:20:56 +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
16 lines
391 B
Plaintext
16 lines
391 B
Plaintext
class IdentityComplete {
|
|
private int myField;
|
|
|
|
public void method(boolean bp) {
|
|
// method begins
|
|
String /*egg*/ var = /*egg*/"var value"; // inside method
|
|
myField += bp ?/*egg*/ var.length() : /*egg*/ this.hashCode(); /* inside method */
|
|
/* method ends */
|
|
}
|
|
|
|
public void context(boolean bp) {
|
|
/* before fragment */
|
|
method(bp);
|
|
// after fragment
|
|
}
|
|
} |