From 78d6321f9f7eb6b2cb990f266bbb16c34e6c584f Mon Sep 17 00:00:00 2001 From: Gravit Date: Thu, 18 Oct 2018 20:56:33 +0700 Subject: [PATCH] IDEA Generify --- .../src/main/java/ru/gravit/utils/event/EventManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libLauncher/src/main/java/ru/gravit/utils/event/EventManager.java b/libLauncher/src/main/java/ru/gravit/utils/event/EventManager.java index 46cff5f1..1efc9f1b 100644 --- a/libLauncher/src/main/java/ru/gravit/utils/event/EventManager.java +++ b/libLauncher/src/main/java/ru/gravit/utils/event/EventManager.java @@ -13,12 +13,12 @@ public class EventManager { public static final int INITIAL_HANDLERS_SIZE = 16; public class Entry { - public Entry(EventHandler func, UUID[] events) { + public Entry(EventHandler func, UUID[] events) { this.func = func; this.events = events; } - EventHandler func; + EventHandler func; UUID[] events; } public class QueueEntry @@ -33,7 +33,7 @@ public QueueEntry(EventInterface event, UUID key) { } public ArrayList handlers = new ArrayList<>(INITIAL_HANDLERS_SIZE); public BlockingQueue queue = new LinkedBlockingQueue<>(QUEUE_MAX_SIZE); //Максимальный размер очереди - public int registerHandler(EventHandler func, UUID[] events) + public int registerHandler(EventHandler func, UUID[] events) { Arrays.sort(events); handlers.add(new Entry(func,events));