java 8: access static method through instance variable: don't show warning, error is enough; add quick fix for an error same as for inspection

This commit is contained in:
Anna.Kozlova
2017-04-07 18:15:44 +02:00
parent 32073ed7f9
commit c0b06a8f2a
8 changed files with 50 additions and 10 deletions

View File

@@ -0,0 +1,10 @@
// "Access static 'I.m()' via class 'I' reference" "true"
interface I {
static void m() {}
}
class A implements I {
{
I.m();
}
}

View File

@@ -0,0 +1,10 @@
// "Access static 'I.m()' via class 'I' reference" "true"
interface I {
static void m() {}
}
class A implements I {
{
this.<caret>m();
}
}