blob: 617884b2d780089ed4e6ec9f941c16aa8bf38182 [file]
import java.util.List;
class C {
List<String> x;
List<String> y;
private void foo() {
<selection>
if (x.isEmpty()) return;
x.remove(0);
y.add(str());
baz();</selection>
}
private void bar() {
if (y.isEmpty()) return;
y.remove(0);
x.add(str());
baz();
}
private void baz() { }
private String str() { return null; }
}