mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 03:37:58 +07:00
create method from usage: guess return types by context of the same method calls (IDEA-199042)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
public Test(Impl impl) {
|
||||
impl.test(test());
|
||||
}
|
||||
|
||||
private String test() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class Impl {
|
||||
void test(String s) {}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
public Test(Impl impl) {
|
||||
impl.test(te<caret>st());
|
||||
}
|
||||
}
|
||||
|
||||
class Impl {
|
||||
void test(String s) {}
|
||||
}
|
||||
Reference in New Issue
Block a user