diff --git a/src/main/java/de/cyklon/jevent/JEvent.java b/src/main/java/de/cyklon/jevent/JEvent.java index b20f621..367f924 100644 --- a/src/main/java/de/cyklon/jevent/JEvent.java +++ b/src/main/java/de/cyklon/jevent/JEvent.java @@ -7,7 +7,6 @@ import de.cyklon.reflection.entities.members.ReflectParameter; import de.cyklon.reflection.function.Filter; import de.cyklon.reflection.function.Sorter; -import de.cyklon.reflection.types.Modifier; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -37,7 +36,7 @@ public static EventManager createManager() { return new JEvent(); } - private final Collection> handlers = new ArrayList<>(); + private final Collection> handlers = new HashSet<>(); private final Map parameterInstances = new HashMap<>(); private JEvent() {}