mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 16:37:38 +01:00
Remove unnecessary generic
This commit is contained in:
parent
15ae5fd3c1
commit
ee99c94509
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user