Files
Alexandr Suhininandintellij-monorepo-bot 0e860160e5 [extract method] fork tests
GitOrigin-RevId: 3aae5c738d48c38144f6a78c36738121831ae5a5
2020-03-31 12:32:01 +00:00

19 lines
299 B
Java

class DecrementDifferentFieldsDuplicate {
int x;
int y;
private void foo() {
<selection>
if (x > 0) {
bar(x);
x--;
}</selection>
if (y > 0) {
bar(y);
y--;
}
}
private void bar(int i) { }
}