mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
default methods in java 8: suggest to mark interface methods with body with default/static (IDEA-105420)
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// "Make 'foo' default" "true"
|
||||
interface I {
|
||||
default void foo() {
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Make 'foo' static" "true"
|
||||
interface I {
|
||||
static void foo() {
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Make 'foo' default" "true"
|
||||
interface I {
|
||||
void f<caret>oo() {
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Make 'foo' default" "false"
|
||||
interface I {
|
||||
void f<caret>oo();
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Make 'foo' static" "true"
|
||||
interface I {
|
||||
void f<caret>oo() {
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user