mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 06:01:00 +07:00
Fixes IDEA-375976 "Extract Method" from selected sub-expression starts editing the wrong place and produces uncompileable code GitOrigin-RevId: 88b610c8376ff56882052c3a977a465a796cf1d0
22 lines
606 B
Java
22 lines
606 B
Java
import org.jetbrains.annotations.NotNull;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
public class Test<T> {
|
|
|
|
private final ArrayList<T> createdItems = new ArrayList<>();
|
|
private final ArrayList<T> modifiedItems = new ArrayList<>();
|
|
private final ArrayList<T> removedItems = new ArrayList<>();
|
|
|
|
@Override
|
|
public String toString() {
|
|
return getClass().getSimpleName() +
|
|
getString();
|
|
}
|
|
|
|
private @NotNull String getString() {
|
|
return " Created: " + createdItems.size() +
|
|
" Modified: " + modifiedItems.size() +
|
|
" Removed: " + removedItems.size();
|
|
}
|
|
} |