From 7e25ece9b0628b4fbfca6a29c42a1a4a6533041a Mon Sep 17 00:00:00 2001 From: Zontreck Date: Tue, 13 Feb 2024 21:25:45 -0700 Subject: [PATCH] Mark the class scanner for removal --- src/main/java/dev/zontreck/eventsbus/ClassScanner.java | 2 ++ src/main/java/dev/zontreck/eventsbus/EventDispatcher.java | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/dev/zontreck/eventsbus/ClassScanner.java b/src/main/java/dev/zontreck/eventsbus/ClassScanner.java index 03c88e9..4e2deab 100644 --- a/src/main/java/dev/zontreck/eventsbus/ClassScanner.java +++ b/src/main/java/dev/zontreck/eventsbus/ClassScanner.java @@ -9,6 +9,8 @@ import java.util.Set; import java.util.jar.JarEntry; import java.util.jar.JarFile; + +@Deprecated /** * Used internally. Do not directly invoke *
diff --git a/src/main/java/dev/zontreck/eventsbus/EventDispatcher.java b/src/main/java/dev/zontreck/eventsbus/EventDispatcher.java index 18ee435..a57b769 100644 --- a/src/main/java/dev/zontreck/eventsbus/EventDispatcher.java +++ b/src/main/java/dev/zontreck/eventsbus/EventDispatcher.java @@ -111,7 +111,6 @@ public class EventDispatcher subscribers.clear(); singleshot.clear(); - ClassScanner.DoScan(); Post(new EventBusReadyEvent()); }