Mark getDependencyVector with @NotNull

This commit is contained in:
JeremyStar™ 2024-07-08 14:26:07 +02:00
parent 8d9e1db8f2
commit 4d462d65f4
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
6 changed files with 10 additions and 0 deletions

View file

@ -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());

View file

@ -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();
/**

View file

@ -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());

View file

@ -148,6 +148,7 @@ public final class GraphicsSubsystem implements SubsystemMainClass {
}
/** {@inheritDoc} */
@NotNull
@Override
public DependencyVector getDependencyVector() {
return new DependencyVector("graphics", StarOpenSourceVersioningSystem.class, EngineInformation.getVersioningString());

View file

@ -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());

View file

@ -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());