Java: Fixed comparing potential matches when detecting duplicates of the extracted method (IDEA-182275)

This commit is contained in:
Pavel Dolgov
2017-11-17 15:44:44 +03:00
parent 9d7fa672d4
commit 7fa96faf72
4 changed files with 43 additions and 1 deletions
@@ -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;
}
}
}