Remove unnecessary generic

This commit is contained in:
TheMode 2021-06-02 20:53:02 +02:00
parent 15ae5fd3c1
commit ee99c94509

View File

@ -9,7 +9,7 @@ import java.util.function.Predicate;
public interface EventNode<T extends Event> {
static <E extends Event, H extends EventHandler> EventNode<E> type(@NotNull EventFilter<E, H> filter) {
static <E extends Event> EventNode<E> type(@NotNull EventFilter<E, ? extends EventHandler> filter) {
return new EventNodeImpl<>(filter);
}