make static: remove inappropriate modifiers, add method body if needed (IDEA-197813)

This commit is contained in:
Anna Kozlova
2018-08-27 15:33:03 +03:00
parent 2d196a18f2
commit de2d0de27f
5 changed files with 58 additions and 4 deletions
@@ -0,0 +1,12 @@
// "Make 'foo' static" "true"
interface I {
static void foo() {
System.out.println();
}
}
class B {
{
I.foo();
}
}
@@ -0,0 +1,12 @@
// "Make 'foo' static" "true"
interface I {
default void foo() {
System.out.println();
}
}
class B {
{
I.f<caret>oo();
}
}