mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
suggest method static imports: take method return type into account (IDEA-82353)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// "Static Import Method 'foo.B.aaaaaaa'" "true"
|
||||
package foo;
|
||||
|
||||
import static foo.B.aaaaaaa;
|
||||
|
||||
public class X {
|
||||
{
|
||||
Integer i = aaaaaaa("", 10);
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
public static Integer aaaaaaa(String s, int i) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
class B1 {
|
||||
public static String aaaaaaa(String s, int i) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// "Static Import Method 'foo.B.aaaaaaa'" "true"
|
||||
package foo;
|
||||
public class X {
|
||||
{
|
||||
Integer i = <caret>aaaaaaa("", 10);
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
public static Integer aaaaaaa(String s, int i) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
class B1 {
|
||||
public static String aaaaaaa(String s, int i) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user