Add some 'final's

This commit is contained in:
JeremyStar™ 2024-07-26 13:20:56 +02:00
parent b529b7a7af
commit 7f324090c1
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
22 changed files with 23 additions and 23 deletions

View file

@ -57,7 +57,7 @@ import java.util.Set;
*/
@Getter
@SuppressWarnings({ "unused" })
public class EventHelper {
public final class EventHelper {
/**
* Contains all cached event listeners.
*

View file

@ -27,7 +27,7 @@ import de.staropensource.sosengine.base.classes.helpers.EventHelper;
*
* @since v1-alpha0
*/
public class InternalEngineShutdownEvent implements Event {
public final class InternalEngineShutdownEvent implements Event {
/**
* Constructs this class.
*/

View file

@ -32,7 +32,7 @@ import java.lang.reflect.*;
* @since v1-alpha2
*/
@SuppressWarnings({ "unused" })
public class ReflectionAccessWidener {
public final class ReflectionAccessWidener {
/**
* Allows access to an {@link AccessibleObject}.
* <p>

View file

@ -36,7 +36,7 @@ import java.util.List;
*/
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
@Getter
public class DependencySubsystemVector extends DependencyVector {
public final class DependencySubsystemVector extends DependencyVector {
/**
* Contains the associated {@link SubsystemMainClass}.
*

View file

@ -31,7 +31,7 @@ import org.jetbrains.annotations.NotNull;
*/
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
@Getter
public class QueuedLogMessage {
public final class QueuedLogMessage {
/**
* The log message's issuer.
*

View file

@ -33,7 +33,7 @@ import org.jetbrains.annotations.Nullable;
*/
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
@Getter
public class LogIssuer {
public final class LogIssuer {
/**
* Contains the issuing class.
*

View file

@ -29,7 +29,7 @@ import org.jetbrains.annotations.NotNull;
*/
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
@Getter
public class LogRule {
public final class LogRule {
/**
* Determines if the log rule should disallow or permit matching log calls.
*

View file

@ -27,7 +27,7 @@ import java.util.LinkedList;
// All mean and double methods have been sourced
// from https://stackoverflow.com/a/4191729, tysm
@SuppressWarnings({ "unused" })
public class Math {
public final class Math {
/**
* Adds padding zeros to a number.
*

View file

@ -47,7 +47,7 @@ import static org.lwjgl.glfw.GLFW.*;
*/
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
@EngineSubsystem
public class GlfwSubsystem implements SubsystemMainClass {
public final class GlfwSubsystem implements SubsystemMainClass {
/**
* Contains the class instance.
*

View file

@ -35,7 +35,7 @@ import static org.lwjgl.glfw.GLFW.*;
* @since v1-alpha2
*/
@SuppressWarnings({ "unused" })
public class KeyCallback extends WindowCallback implements GLFWKeyCallbackI {
public final class KeyCallback extends WindowCallback implements GLFWKeyCallbackI {
/**
* A {@link InputEvent} instance, to avoid creating too many objects
* and making too many allocations, which would potentially decrease

View file

@ -35,7 +35,7 @@ import static org.lwjgl.glfw.GLFW.*;
* @since v1-alpha2
*/
@SuppressWarnings({ "unused" })
public class MouseButtonCallback extends WindowCallback implements GLFWMouseButtonCallbackI {
public final class MouseButtonCallback extends WindowCallback implements GLFWMouseButtonCallbackI {
/**
* A {@link InputEvent} instance, to avoid creating too many objects
* and making too many allocations, which would potentially decrease

View file

@ -29,6 +29,7 @@ import org.jetbrains.annotations.NotNull;
*
* @since v1-alpha2
*/
@Getter
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
public abstract class WindowCallback {
/**
@ -45,7 +46,6 @@ public abstract class WindowCallback {
* @since v1-alpha2
*/
@NotNull
@Getter
private final Window attachedWindow;
/**

View file

@ -24,7 +24,7 @@ package de.staropensource.sosengine.graphics.glfw.exceptions;
*
* @since v1-alpha2
*/
public class GlfwInitializationException extends RuntimeException {
public final class GlfwInitializationException extends RuntimeException {
/**
* Constructs this exception.
*

View file

@ -24,7 +24,7 @@ package de.staropensource.sosengine.graphics.glfw.exceptions;
*
* @since v1-alpha2
*/
public class NotOnMainThreadException extends RuntimeException {
public final class NotOnMainThreadException extends RuntimeException {
/**
* Constructs this exception.
*

View file

@ -27,7 +27,7 @@ import org.jetbrains.annotations.NotNull;
* @since v1-alpha2
*/
@SuppressWarnings({ "unused" })
public class WindowCreationFailureException extends RuntimeException {
public final class WindowCreationFailureException extends RuntimeException {
/**
* Constructs this exception.
*

View file

@ -24,7 +24,7 @@ import de.staropensource.sosengine.graphics.classes.Window;
import de.staropensource.sosengine.graphics.opengl.classes.OpenGlWindow;
import org.jetbrains.annotations.NotNull;
public class OpenGlInternalApi implements ApiInternalClass {
public final class OpenGlInternalApi implements ApiInternalClass {
/** {@inheritDoc} */
@Override
@NotNull

View file

@ -37,7 +37,7 @@ import static org.lwjgl.glfw.GLFW.*;
* @since v1-alpha0
*/
@SuppressWarnings({ "unused" })
public class OpenGlWindow extends GlfwWindow {
public final class OpenGlWindow extends GlfwWindow {
// ------------------------------------------------ [ Window initialization ] ------------------------------------------------ //
/**
* Creates a new window.

View file

@ -566,7 +566,7 @@ public abstract class Window implements AutoCloseable {
* @see #terminate()
* @since v1-alpha2
*/
public void close() {
public final void close() {
terminate();
}
@ -639,7 +639,7 @@ public abstract class Window implements AutoCloseable {
*/
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
@Getter
public static class Builder {
public static final class Builder {
/**
* Contains the window name.
*

View file

@ -29,7 +29,7 @@ import org.jetbrains.annotations.NotNull;
* @since v1-alpha0
*/
@SuppressWarnings({ "unused" })
public class GraphicsApiErrorEvent implements Event {
public final class GraphicsApiErrorEvent implements Event {
/**
* Constructs this class.
*/

View file

@ -28,7 +28,7 @@ import de.staropensource.sosengine.base.classes.helpers.EventHelper;
* @since v1-alpha0
*/
@SuppressWarnings({ "unused" })
public class GraphicsApiShutdownEvent implements Event {
public final class GraphicsApiShutdownEvent implements Event {
/**
* Constructs this class.
*/

View file

@ -27,7 +27,7 @@ import org.lwjgl.glfw.GLFWErrorCallbackI;
* @since v1-alpha0
*/
@SuppressWarnings({ "unused" })
public class GraphicsErrorEvent extends de.staropensource.sosengine.graphics.events.GraphicsErrorEvent implements GLFWErrorCallbackI {
public final class GraphicsErrorEvent extends de.staropensource.sosengine.graphics.events.GraphicsErrorEvent implements GLFWErrorCallbackI {
/**
* Constructs this class.
*/

View file

@ -47,7 +47,7 @@ import java.util.LinkedHashMap;
* The initialization class for sos!engine's development application.
*/
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
public class Main {
public final class Main {
/**
* Contains the class instance.
*