mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 21:50:54 +07:00
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;
|
|
}
|
|
}
|
|
} |