From 9531f1543576be3e06d70aeb7ac2e18135edcfd8 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Mon, 10 Jun 2024 18:37:02 +0200 Subject: [PATCH] Move class helpers into separate package --- .../base/{utility => classes/helpers}/EventHelper.java | 2 +- .../sosengine/base/classes/helpers/package-info.java | 6 ++++++ .../sosengine/base/events/EngineCrashEvent.java | 2 +- .../de/staropensource/sosengine/base/events/LogEvent.java | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) rename base/src/main/java/de/staropensource/sosengine/base/{utility => classes/helpers}/EventHelper.java (98%) create mode 100644 base/src/main/java/de/staropensource/sosengine/base/classes/helpers/package-info.java diff --git a/base/src/main/java/de/staropensource/sosengine/base/utility/EventHelper.java b/base/src/main/java/de/staropensource/sosengine/base/classes/helpers/EventHelper.java similarity index 98% rename from base/src/main/java/de/staropensource/sosengine/base/utility/EventHelper.java rename to base/src/main/java/de/staropensource/sosengine/base/classes/helpers/EventHelper.java index 8415bf5..fae9fbf 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/utility/EventHelper.java +++ b/base/src/main/java/de/staropensource/sosengine/base/classes/helpers/EventHelper.java @@ -17,7 +17,7 @@ along with this program. If not, see . */ -package de.staropensource.sosengine.base.utility; +package de.staropensource.sosengine.base.classes.helpers; import de.staropensource.sosengine.base.annotations.EventListener; import de.staropensource.sosengine.base.classes.Event; diff --git a/base/src/main/java/de/staropensource/sosengine/base/classes/helpers/package-info.java b/base/src/main/java/de/staropensource/sosengine/base/classes/helpers/package-info.java new file mode 100644 index 0000000..0f213ce --- /dev/null +++ b/base/src/main/java/de/staropensource/sosengine/base/classes/helpers/package-info.java @@ -0,0 +1,6 @@ +/** + * Not necessarily interfaces or extendable classes. Rather, they support building classes using certain interfaces by providing useful code. + * + * @since 1-alpha0 + */ +package de.staropensource.sosengine.base.classes.helpers; diff --git a/base/src/main/java/de/staropensource/sosengine/base/events/EngineCrashEvent.java b/base/src/main/java/de/staropensource/sosengine/base/events/EngineCrashEvent.java index 03c760c..75c2449 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/events/EngineCrashEvent.java +++ b/base/src/main/java/de/staropensource/sosengine/base/events/EngineCrashEvent.java @@ -20,7 +20,7 @@ package de.staropensource.sosengine.base.events; import de.staropensource.sosengine.base.classes.Event; -import de.staropensource.sosengine.base.utility.EventHelper; +import de.staropensource.sosengine.base.classes.helpers.EventHelper; /** * Called in the event of an engine crash, just before the JVM exists. diff --git a/base/src/main/java/de/staropensource/sosengine/base/events/LogEvent.java b/base/src/main/java/de/staropensource/sosengine/base/events/LogEvent.java index 10907c5..433b19f 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/events/LogEvent.java +++ b/base/src/main/java/de/staropensource/sosengine/base/events/LogEvent.java @@ -22,7 +22,7 @@ package de.staropensource.sosengine.base.events; import de.staropensource.sosengine.base.classes.Event; import de.staropensource.sosengine.base.types.LogIssuer; import de.staropensource.sosengine.base.types.LogLevel; -import de.staropensource.sosengine.base.utility.EventHelper; +import de.staropensource.sosengine.base.classes.helpers.EventHelper; import org.jetbrains.annotations.NotNull; import java.lang.reflect.InvocationTargetException;