mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Java: Fixed comparing potential matches when detecting duplicates of the extracted method (IDEA-182275)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
class WriteDifferentFieldsDuplicate {
|
||||
Runnable x;
|
||||
Runnable y;
|
||||
|
||||
private void foo() {
|
||||
<selection>
|
||||
if (x != null) {
|
||||
x.run();
|
||||
x = null;
|
||||
}</selection>
|
||||
|
||||
if (y != null) {
|
||||
y.run();
|
||||
y = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user