static import: postpone @deprecated methods if possible; show deprecated if all/acceptable is deprecated (IDEA-98350)

This commit is contained in:
anna
2013-04-25 16:43:41 +02:00
parent aa806544c2
commit 92f0e1b91f
2 changed files with 63 additions and 17 deletions

View File

@@ -0,0 +1,22 @@
// "Static Import Method 'foo.B.aaaaaaa'" "false"
package foo;
public class X {
{
foo(1, 2, <caret>aaaaaaa(""));
}
void foo(Integer... p) {}
}
class B {
@Deprecated
public static Integer aaaaaaa(String s, String b) {
return 1;
}
}
class B1 {
public static String aaaaaaa(String s) {
return "";
}
}