mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
prefer extensions methods als interface (IDEA-96719)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
interface OfInt extends Sink<Integer> {
|
||||
default void accept(Integer i) {}
|
||||
}
|
||||
interface Sink<T> extends Block<T> {
|
||||
}
|
||||
|
||||
interface Block<T> {
|
||||
public void accept(T t);
|
||||
}
|
||||
|
||||
|
||||
class Hello1 implements Sink<Integer>, OfInt {}
|
||||
class Hello2 implements OfInt, Sink<Integer>{}
|
||||
|
||||
Reference in New Issue
Block a user