mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-21 14:37:45 +07:00
Java: Don't fold too complex expressions when extracting method (IDEA-175221, IDEA-167255)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
class C {
|
||||
String[] vars;
|
||||
int foo(C c, int i) {
|
||||
return newMethod(c.vars[i]);
|
||||
}
|
||||
|
||||
private int newMethod(String var) {
|
||||
return var.length();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user