mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
Java: Don't fold too complex expressions when extracting method (IDEA-175221, IDEA-167255)
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
class Foo {
|
||||
boolean bar(String[] a) {
|
||||
for (int i = 0; i < a.length; i++) {
|
||||
if (newMethod(a[i], i)) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean newMethod(String s, int i) {
|
||||
if (s.length() > 3 && i % 3 == 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user