mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 14:17:48 +07:00
GitOrigin-RevId: 3aae5c738d48c38144f6a78c36738121831ae5a5
21 lines
320 B
Java
21 lines
320 B
Java
class WriteDifferentFieldsDuplicate {
|
|
Runnable x;
|
|
Runnable y;
|
|
|
|
private void foo() {
|
|
|
|
newMethod();
|
|
|
|
if (y != null) {
|
|
y.run();
|
|
y = null;
|
|
}
|
|
}
|
|
|
|
private void newMethod() {
|
|
if (x != null) {
|
|
x.run();
|
|
x = null;
|
|
}
|
|
}
|
|
} |