Java: Don't fold too complex expressions when extracting method (IDEA-175221, IDEA-167255)

This commit is contained in:
Pavel Dolgov
2017-07-05 18:50:35 +03:00
parent b6805da8b0
commit 403587e293
16 changed files with 248 additions and 12 deletions
@@ -0,0 +1,11 @@
class Foo {
boolean bar(String[][] a) {
for (int i = 0; i < a.length; i++)
for (int j = 0; i < a[i].length; j++) {<selection>
if (a[i][j].length() > 3 && i % 3 == 0)
return true;
</selection>
}
return false;
}
}