Add some 'final's
This commit is contained in:
parent
b529b7a7af
commit
7f324090c1
22 changed files with 23 additions and 23 deletions
|
@ -57,7 +57,7 @@ import java.util.Set;
|
||||||
*/
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
@SuppressWarnings({ "unused" })
|
@SuppressWarnings({ "unused" })
|
||||||
public class EventHelper {
|
public final class EventHelper {
|
||||||
/**
|
/**
|
||||||
* Contains all cached event listeners.
|
* Contains all cached event listeners.
|
||||||
*
|
*
|
||||||
|
|
|
@ -27,7 +27,7 @@ import de.staropensource.sosengine.base.classes.helpers.EventHelper;
|
||||||
*
|
*
|
||||||
* @since v1-alpha0
|
* @since v1-alpha0
|
||||||
*/
|
*/
|
||||||
public class InternalEngineShutdownEvent implements Event {
|
public final class InternalEngineShutdownEvent implements Event {
|
||||||
/**
|
/**
|
||||||
* Constructs this class.
|
* Constructs this class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -32,7 +32,7 @@ import java.lang.reflect.*;
|
||||||
* @since v1-alpha2
|
* @since v1-alpha2
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused" })
|
@SuppressWarnings({ "unused" })
|
||||||
public class ReflectionAccessWidener {
|
public final class ReflectionAccessWidener {
|
||||||
/**
|
/**
|
||||||
* Allows access to an {@link AccessibleObject}.
|
* Allows access to an {@link AccessibleObject}.
|
||||||
* <p>
|
* <p>
|
||||||
|
|
|
@ -36,7 +36,7 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
||||||
@Getter
|
@Getter
|
||||||
public class DependencySubsystemVector extends DependencyVector {
|
public final class DependencySubsystemVector extends DependencyVector {
|
||||||
/**
|
/**
|
||||||
* Contains the associated {@link SubsystemMainClass}.
|
* Contains the associated {@link SubsystemMainClass}.
|
||||||
*
|
*
|
||||||
|
|
|
@ -31,7 +31,7 @@ import org.jetbrains.annotations.NotNull;
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
||||||
@Getter
|
@Getter
|
||||||
public class QueuedLogMessage {
|
public final class QueuedLogMessage {
|
||||||
/**
|
/**
|
||||||
* The log message's issuer.
|
* The log message's issuer.
|
||||||
*
|
*
|
||||||
|
|
|
@ -33,7 +33,7 @@ import org.jetbrains.annotations.Nullable;
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
||||||
@Getter
|
@Getter
|
||||||
public class LogIssuer {
|
public final class LogIssuer {
|
||||||
/**
|
/**
|
||||||
* Contains the issuing class.
|
* Contains the issuing class.
|
||||||
*
|
*
|
||||||
|
|
|
@ -29,7 +29,7 @@ import org.jetbrains.annotations.NotNull;
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
||||||
@Getter
|
@Getter
|
||||||
public class LogRule {
|
public final class LogRule {
|
||||||
/**
|
/**
|
||||||
* Determines if the log rule should disallow or permit matching log calls.
|
* Determines if the log rule should disallow or permit matching log calls.
|
||||||
*
|
*
|
||||||
|
|
|
@ -27,7 +27,7 @@ import java.util.LinkedList;
|
||||||
// All mean and double methods have been sourced
|
// All mean and double methods have been sourced
|
||||||
// from https://stackoverflow.com/a/4191729, tysm
|
// from https://stackoverflow.com/a/4191729, tysm
|
||||||
@SuppressWarnings({ "unused" })
|
@SuppressWarnings({ "unused" })
|
||||||
public class Math {
|
public final class Math {
|
||||||
/**
|
/**
|
||||||
* Adds padding zeros to a number.
|
* Adds padding zeros to a number.
|
||||||
*
|
*
|
||||||
|
|
|
@ -47,7 +47,7 @@ import static org.lwjgl.glfw.GLFW.*;
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
||||||
@EngineSubsystem
|
@EngineSubsystem
|
||||||
public class GlfwSubsystem implements SubsystemMainClass {
|
public final class GlfwSubsystem implements SubsystemMainClass {
|
||||||
/**
|
/**
|
||||||
* Contains the class instance.
|
* Contains the class instance.
|
||||||
*
|
*
|
||||||
|
|
|
@ -35,7 +35,7 @@ import static org.lwjgl.glfw.GLFW.*;
|
||||||
* @since v1-alpha2
|
* @since v1-alpha2
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused" })
|
@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
|
* A {@link InputEvent} instance, to avoid creating too many objects
|
||||||
* and making too many allocations, which would potentially decrease
|
* and making too many allocations, which would potentially decrease
|
||||||
|
|
|
@ -35,7 +35,7 @@ import static org.lwjgl.glfw.GLFW.*;
|
||||||
* @since v1-alpha2
|
* @since v1-alpha2
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused" })
|
@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
|
* A {@link InputEvent} instance, to avoid creating too many objects
|
||||||
* and making too many allocations, which would potentially decrease
|
* and making too many allocations, which would potentially decrease
|
||||||
|
|
|
@ -29,6 +29,7 @@ import org.jetbrains.annotations.NotNull;
|
||||||
*
|
*
|
||||||
* @since v1-alpha2
|
* @since v1-alpha2
|
||||||
*/
|
*/
|
||||||
|
@Getter
|
||||||
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
||||||
public abstract class WindowCallback {
|
public abstract class WindowCallback {
|
||||||
/**
|
/**
|
||||||
|
@ -45,7 +46,6 @@ public abstract class WindowCallback {
|
||||||
* @since v1-alpha2
|
* @since v1-alpha2
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
@Getter
|
|
||||||
private final Window attachedWindow;
|
private final Window attachedWindow;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -24,7 +24,7 @@ package de.staropensource.sosengine.graphics.glfw.exceptions;
|
||||||
*
|
*
|
||||||
* @since v1-alpha2
|
* @since v1-alpha2
|
||||||
*/
|
*/
|
||||||
public class GlfwInitializationException extends RuntimeException {
|
public final class GlfwInitializationException extends RuntimeException {
|
||||||
/**
|
/**
|
||||||
* Constructs this exception.
|
* Constructs this exception.
|
||||||
*
|
*
|
||||||
|
|
|
@ -24,7 +24,7 @@ package de.staropensource.sosengine.graphics.glfw.exceptions;
|
||||||
*
|
*
|
||||||
* @since v1-alpha2
|
* @since v1-alpha2
|
||||||
*/
|
*/
|
||||||
public class NotOnMainThreadException extends RuntimeException {
|
public final class NotOnMainThreadException extends RuntimeException {
|
||||||
/**
|
/**
|
||||||
* Constructs this exception.
|
* Constructs this exception.
|
||||||
*
|
*
|
||||||
|
|
|
@ -27,7 +27,7 @@ import org.jetbrains.annotations.NotNull;
|
||||||
* @since v1-alpha2
|
* @since v1-alpha2
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused" })
|
@SuppressWarnings({ "unused" })
|
||||||
public class WindowCreationFailureException extends RuntimeException {
|
public final class WindowCreationFailureException extends RuntimeException {
|
||||||
/**
|
/**
|
||||||
* Constructs this exception.
|
* Constructs this exception.
|
||||||
*
|
*
|
||||||
|
|
|
@ -24,7 +24,7 @@ import de.staropensource.sosengine.graphics.classes.Window;
|
||||||
import de.staropensource.sosengine.graphics.opengl.classes.OpenGlWindow;
|
import de.staropensource.sosengine.graphics.opengl.classes.OpenGlWindow;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public class OpenGlInternalApi implements ApiInternalClass {
|
public final class OpenGlInternalApi implements ApiInternalClass {
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
@Override
|
@Override
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|
|
@ -37,7 +37,7 @@ import static org.lwjgl.glfw.GLFW.*;
|
||||||
* @since v1-alpha0
|
* @since v1-alpha0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused" })
|
@SuppressWarnings({ "unused" })
|
||||||
public class OpenGlWindow extends GlfwWindow {
|
public final class OpenGlWindow extends GlfwWindow {
|
||||||
// ------------------------------------------------ [ Window initialization ] ------------------------------------------------ //
|
// ------------------------------------------------ [ Window initialization ] ------------------------------------------------ //
|
||||||
/**
|
/**
|
||||||
* Creates a new window.
|
* Creates a new window.
|
||||||
|
|
|
@ -566,7 +566,7 @@ public abstract class Window implements AutoCloseable {
|
||||||
* @see #terminate()
|
* @see #terminate()
|
||||||
* @since v1-alpha2
|
* @since v1-alpha2
|
||||||
*/
|
*/
|
||||||
public void close() {
|
public final void close() {
|
||||||
terminate();
|
terminate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -639,7 +639,7 @@ public abstract class Window implements AutoCloseable {
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
||||||
@Getter
|
@Getter
|
||||||
public static class Builder {
|
public static final class Builder {
|
||||||
/**
|
/**
|
||||||
* Contains the window name.
|
* Contains the window name.
|
||||||
*
|
*
|
||||||
|
|
|
@ -29,7 +29,7 @@ import org.jetbrains.annotations.NotNull;
|
||||||
* @since v1-alpha0
|
* @since v1-alpha0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused" })
|
@SuppressWarnings({ "unused" })
|
||||||
public class GraphicsApiErrorEvent implements Event {
|
public final class GraphicsApiErrorEvent implements Event {
|
||||||
/**
|
/**
|
||||||
* Constructs this class.
|
* Constructs this class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -28,7 +28,7 @@ import de.staropensource.sosengine.base.classes.helpers.EventHelper;
|
||||||
* @since v1-alpha0
|
* @since v1-alpha0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused" })
|
@SuppressWarnings({ "unused" })
|
||||||
public class GraphicsApiShutdownEvent implements Event {
|
public final class GraphicsApiShutdownEvent implements Event {
|
||||||
/**
|
/**
|
||||||
* Constructs this class.
|
* Constructs this class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -27,7 +27,7 @@ import org.lwjgl.glfw.GLFWErrorCallbackI;
|
||||||
* @since v1-alpha0
|
* @since v1-alpha0
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused" })
|
@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.
|
* Constructs this class.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -47,7 +47,7 @@ import java.util.LinkedHashMap;
|
||||||
* The initialization class for sos!engine's development application.
|
* The initialization class for sos!engine's development application.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
||||||
public class Main {
|
public final class Main {
|
||||||
/**
|
/**
|
||||||
* Contains the class instance.
|
* Contains the class instance.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue