From 4d462d65f448bffccb256bdf36c414056c2a6fa3 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Mon, 8 Jul 2024 14:26:07 +0200 Subject: [PATCH] Mark getDependencyVector with @NotNull --- base/src/main/java/de/staropensource/sosengine/base/Engine.java | 1 + .../sosengine/base/classes/SubsystemMainClass.java | 2 ++ .../sosengine/graphics/opengl/OpenGlSubsystem.java | 2 ++ .../de/staropensource/sosengine/graphics/GraphicsSubsystem.java | 1 + .../sosengine/graphics/vulkan/VulkanSubsystem.java | 2 ++ .../sosengine/slf4j_compat/Slf4jCompatibilitySubsystem.java | 2 ++ 6 files changed, 10 insertions(+) diff --git a/base/src/main/java/de/staropensource/sosengine/base/Engine.java b/base/src/main/java/de/staropensource/sosengine/base/Engine.java index 9a051c53..d60bdbcb 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/Engine.java +++ b/base/src/main/java/de/staropensource/sosengine/base/Engine.java @@ -353,6 +353,7 @@ public final class Engine implements SubsystemMainClass { * @see DependencyVector * @since 1-alpha1 */ + @NotNull @Override public DependencyVector getDependencyVector() { return new DependencyVector("engine", StarOpenSourceVersioningSystem.class, EngineInformation.getVersioningString()); diff --git a/base/src/main/java/de/staropensource/sosengine/base/classes/SubsystemMainClass.java b/base/src/main/java/de/staropensource/sosengine/base/classes/SubsystemMainClass.java index 46913deb..c750935d 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/classes/SubsystemMainClass.java +++ b/base/src/main/java/de/staropensource/sosengine/base/classes/SubsystemMainClass.java @@ -24,6 +24,7 @@ import de.staropensource.sosengine.base.annotations.EventListener; import de.staropensource.sosengine.base.internal.events.InternalEngineShutdownEvent; import de.staropensource.sosengine.base.logging.LoggerInstance; import de.staropensource.sosengine.base.types.dependency.DependencyVector; +import org.jetbrains.annotations.NotNull; /** * The interface for engine subsystem main classes. @@ -53,6 +54,7 @@ public interface SubsystemMainClass { * @see DependencyVector * @since 1-alpha1 */ + @NotNull DependencyVector getDependencyVector(); /** diff --git a/graphics/opengl/src/main/java/de/staropensource/sosengine/graphics/opengl/OpenGlSubsystem.java b/graphics/opengl/src/main/java/de/staropensource/sosengine/graphics/opengl/OpenGlSubsystem.java index 668a796b..4d09b082 100644 --- a/graphics/opengl/src/main/java/de/staropensource/sosengine/graphics/opengl/OpenGlSubsystem.java +++ b/graphics/opengl/src/main/java/de/staropensource/sosengine/graphics/opengl/OpenGlSubsystem.java @@ -36,6 +36,7 @@ import de.staropensource.sosengine.graphics.classes.ApiManagementClass; import de.staropensource.sosengine.graphics.events.GraphicsApiErrorEvent; import de.staropensource.sosengine.graphics.opengl.events.GraphicsErrorEvent; import lombok.Getter; +import org.jetbrains.annotations.NotNull; import org.lwjgl.glfw.GLFWErrorCallback; import org.lwjgl.system.MemoryUtil; @@ -198,6 +199,7 @@ public final class OpenGlSubsystem implements ApiMainClass { } /** {@inheritDoc} */ + @NotNull @Override public DependencyVector getDependencyVector() { return new DependencyVector("opengl", StarOpenSourceVersioningSystem.class, EngineInformation.getVersioningString()); diff --git a/graphics/src/main/java/de/staropensource/sosengine/graphics/GraphicsSubsystem.java b/graphics/src/main/java/de/staropensource/sosengine/graphics/GraphicsSubsystem.java index d31cd5ab..8faafb64 100644 --- a/graphics/src/main/java/de/staropensource/sosengine/graphics/GraphicsSubsystem.java +++ b/graphics/src/main/java/de/staropensource/sosengine/graphics/GraphicsSubsystem.java @@ -148,6 +148,7 @@ public final class GraphicsSubsystem implements SubsystemMainClass { } /** {@inheritDoc} */ + @NotNull @Override public DependencyVector getDependencyVector() { return new DependencyVector("graphics", StarOpenSourceVersioningSystem.class, EngineInformation.getVersioningString()); diff --git a/graphics/vulkan/src/main/java/de/staropensource/sosengine/graphics/vulkan/VulkanSubsystem.java b/graphics/vulkan/src/main/java/de/staropensource/sosengine/graphics/vulkan/VulkanSubsystem.java index b02fe826..714d6c03 100644 --- a/graphics/vulkan/src/main/java/de/staropensource/sosengine/graphics/vulkan/VulkanSubsystem.java +++ b/graphics/vulkan/src/main/java/de/staropensource/sosengine/graphics/vulkan/VulkanSubsystem.java @@ -34,6 +34,7 @@ import de.staropensource.sosengine.graphics.classes.ApiMainClass; import de.staropensource.sosengine.graphics.classes.ApiManagementClass; import de.staropensource.sosengine.graphics.vulkan.events.GraphicsErrorEvent; import lombok.Getter; +import org.jetbrains.annotations.NotNull; import org.lwjgl.glfw.GLFWErrorCallback; import static org.lwjgl.glfw.GLFW.*; @@ -173,6 +174,7 @@ public final class VulkanSubsystem implements ApiMainClass { } /** {@inheritDoc} */ + @NotNull @Override public DependencyVector getDependencyVector() { return new DependencyVector("vulkan", StarOpenSourceVersioningSystem.class, EngineInformation.getVersioningString()); diff --git a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/Slf4jCompatibilitySubsystem.java b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/Slf4jCompatibilitySubsystem.java index 06446caf..28bd7c77 100644 --- a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/Slf4jCompatibilitySubsystem.java +++ b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/Slf4jCompatibilitySubsystem.java @@ -30,6 +30,7 @@ import de.staropensource.sosengine.base.types.CodePart; import de.staropensource.sosengine.base.types.dependency.DependencyVector; import de.staropensource.sosengine.base.utility.Miscellaneous; import lombok.Getter; +import org.jetbrains.annotations.NotNull; import org.slf4j.LoggerFactory; /** @@ -79,6 +80,7 @@ public class Slf4jCompatibilitySubsystem implements SubsystemMainClass { } /** {@inheritDoc} */ + @NotNull @Override public DependencyVector getDependencyVector() { return new DependencyVector("slf4j-compat", StarOpenSourceVersioningSystem.class, EngineInformation.getVersioningString());