default methods in java 8: suggest to mark interface methods with body with default/static (IDEA-105420)

This commit is contained in:
anna
2013-04-16 11:19:48 +02:00
parent 40e86845cc
commit 33f3792dc3
7 changed files with 62 additions and 1 deletions
@@ -0,0 +1,6 @@
// "Make 'foo' default" "true"
interface I {
default void foo() {
System.out.println();
}
}
@@ -0,0 +1,6 @@
// "Make 'foo' static" "true"
interface I {
static void foo() {
System.out.println();
}
}
@@ -0,0 +1,6 @@
// "Make 'foo' default" "true"
interface I {
void f<caret>oo() {
System.out.println();
}
}
@@ -0,0 +1,4 @@
// "Make 'foo' default" "false"
interface I {
void f<caret>oo();
}
@@ -0,0 +1,6 @@
// "Make 'foo' static" "true"
interface I {
void f<caret>oo() {
System.out.println();
}
}