Remove many unused warning supressions

Why did I add this to every single class file in the first place...?
This commit is contained in:
JeremyStar™ 2024-08-19 02:49:00 +02:00
parent ed9c94f17c
commit 9ff4f96814
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
112 changed files with 54 additions and 114 deletions

View file

@ -35,7 +35,6 @@ import org.jetbrains.annotations.Nullable;
* @see LoggerImplementation * @see LoggerImplementation
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused" })
public class AnsiLoggerImplementation implements LoggerImplementation { public class AnsiLoggerImplementation implements LoggerImplementation {
/** /**
* Constructs this class. * Constructs this class.

View file

@ -30,7 +30,6 @@ import org.jetbrains.annotations.NotNull;
* @see ShortcodeParserSkeleton * @see ShortcodeParserSkeleton
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused" })
public final class AnsiShortcodeConverter extends ShortcodeParserSkeleton { public final class AnsiShortcodeConverter extends ShortcodeParserSkeleton {
/** /**
* Constructs this class. * Constructs this class.

View file

@ -34,7 +34,7 @@ import org.jetbrains.annotations.NotNull;
* @since v1-alpha2 * @since v1-alpha2
*/ */
@EngineSubsystem @EngineSubsystem
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class AnsiSubsystem extends SubsystemClass { public final class AnsiSubsystem extends SubsystemClass {
/** /**
* Contains the class instance. * Contains the class instance.

View file

@ -58,7 +58,7 @@ import java.util.*;
* @since v1-alpha0 * @since v1-alpha0
*/ */
@EngineSubsystem @EngineSubsystem
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class Engine extends SubsystemClass { public final class Engine extends SubsystemClass {
/** /**
* Contains the class instance. * Contains the class instance.

View file

@ -50,7 +50,7 @@ import java.util.Properties;
* @since v1-alpha0 * @since v1-alpha0
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class EngineConfiguration extends Configuration { public final class EngineConfiguration extends Configuration {
/** /**
* Contains the class instance. * Contains the class instance.

View file

@ -33,5 +33,4 @@ import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE) @Target(ElementType.TYPE)
@Documented @Documented
@SuppressWarnings("unused")
public @interface EngineSubsystem {} public @interface EngineSubsystem {}

View file

@ -34,7 +34,6 @@ import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD) @Target(ElementType.METHOD)
@Documented @Documented
@SuppressWarnings("unused")
public @interface EventListener { public @interface EventListener {
/** /**
* Specifies the event to listen for. * Specifies the event to listen for.

View file

@ -35,7 +35,6 @@ import java.util.Properties;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused" })
public abstract class Configuration { public abstract class Configuration {
/** /**
* Contains the {@link LoggerInstance} for this instance. * Contains the {@link LoggerInstance} for this instance.

View file

@ -27,7 +27,6 @@ import de.staropensource.sosengine.base.classes.helpers.EventHelper;
* @see EventHelper * @see EventHelper
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings({ "unused" })
public interface Event { public interface Event {
/** /**
* Emits the event and calls all event listeners. * Emits the event and calls all event listeners.

View file

@ -30,7 +30,6 @@ import org.jetbrains.annotations.Nullable;
* @see Logger#setLoggerImplementation(LoggerImplementation) * @see Logger#setLoggerImplementation(LoggerImplementation)
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings({ "unused" })
public interface LoggerImplementation { public interface LoggerImplementation {
/** /**
* Invoked before anything is done with the log message. * Invoked before anything is done with the log message.

View file

@ -28,7 +28,6 @@ import org.jetbrains.annotations.NotNull;
* @see PlaceholderEngine * @see PlaceholderEngine
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings({ "unused" })
public interface Placeholder { public interface Placeholder {
/** /**
* Replaces the placeholder with content. * Replaces the placeholder with content.

View file

@ -48,7 +48,7 @@ import java.util.Locale;
* *
* @since v1-alpha1 * @since v1-alpha1
*/ */
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public abstract class ShortcodeParserSkeleton { public abstract class ShortcodeParserSkeleton {
/** /**
* Contains the {@link LoggerInstance} for this instance. * Contains the {@link LoggerInstance} for this instance.

View file

@ -33,7 +33,6 @@ import org.jetbrains.annotations.NotNull;
* @see EngineSubsystem * @see EngineSubsystem
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings({ "unused" })
public abstract class SubsystemClass { public abstract class SubsystemClass {
/** /**
* Constructs this class. * Constructs this class.
@ -84,5 +83,6 @@ public abstract class SubsystemClass {
* @since v1-alpha0 * @since v1-alpha0
*/ */
@EventListener(event = InternalEngineShutdownEvent.class) @EventListener(event = InternalEngineShutdownEvent.class)
@SuppressWarnings({ "unused" })
protected static void shutdownSubsystem() {} protected static void shutdownSubsystem() {}
} }

View file

@ -28,7 +28,6 @@ import org.jetbrains.annotations.Range;
* *
* @since v1-alpha1 * @since v1-alpha1
*/ */
@SuppressWarnings({ "unused" })
public interface VersioningSystem { public interface VersioningSystem {
/** /**
* Returns the name of the versioning system. * Returns the name of the versioning system.

View file

@ -53,7 +53,6 @@ import java.util.Set;
* @since v1-alpha0 * @since v1-alpha0
*/ */
@Getter @Getter
@SuppressWarnings({ "unused" })
public final class EventHelper { public final class EventHelper {
/** /**
* Holds all cached events. * Holds all cached events.

View file

@ -42,7 +42,7 @@ import java.util.Properties;
* *
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class EngineInformation { public final class EngineInformation {
/** /**
* Contains the {@link LoggerInstance} for this instance. * Contains the {@link LoggerInstance} for this instance.
@ -363,7 +363,6 @@ public final class EngineInformation {
gradleProperties.load(gradleStream); gradleProperties.load(gradleStream);
gradleStream.close(); gradleStream.close();
} catch (IOException exception) { } catch (IOException exception) {
StackTraceParser parser = new StackTraceParser(exception);
logger.crash("Unable to load build information: InputStream 'gradleStream' failed", exception); logger.crash("Unable to load build information: InputStream 'gradleStream' failed", exception);
return; return;
} }
@ -391,7 +390,6 @@ public final class EngineInformation {
gitProperties.load(gitStream); gitProperties.load(gitStream);
gitStream.close(); gitStream.close();
} catch (IOException exception) { } catch (IOException exception) {
StackTraceParser parser = new StackTraceParser(exception);
logger.crash("Unable to load build information: InputStream 'gitStream' failed", exception); logger.crash("Unable to load build information: InputStream 'gitStream' failed", exception);
return; return;
} }

View file

@ -33,7 +33,7 @@ import org.jetbrains.annotations.Range;
* @since v1-alpha1 * @since v1-alpha1
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class FourNumberVersioningSystem implements VersioningSystem { public final class FourNumberVersioningSystem implements VersioningSystem {
/** /**
* Contains the first number vector. * Contains the first number vector.

View file

@ -32,7 +32,7 @@ import org.jetbrains.annotations.Range;
* @since v1-alpha1 * @since v1-alpha1
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class OneNumberVersioningSystem implements VersioningSystem { public final class OneNumberVersioningSystem implements VersioningSystem {
/** /**
* Contains the number vector. * Contains the number vector.

View file

@ -40,7 +40,7 @@ import java.util.List;
* @since v1-alpha1 * @since v1-alpha1
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class SemanticVersioningSystem implements VersioningSystem { public final class SemanticVersioningSystem implements VersioningSystem {
/** /**
* Contains the {@code MAJOR} vector. * Contains the {@code MAJOR} vector.

View file

@ -41,7 +41,7 @@ import java.util.Locale;
* @since v1-alpha1 * @since v1-alpha1
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class StarOpenSourceVersioningSystem implements VersioningSystem { public final class StarOpenSourceVersioningSystem implements VersioningSystem {
/** /**
* Contains the {@code VERSION} vector. * Contains the {@code VERSION} vector.

View file

@ -33,7 +33,7 @@ import org.jetbrains.annotations.Range;
* @since v1-alpha1 * @since v1-alpha1
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class ThreeNumberVersioningSystem implements VersioningSystem { public final class ThreeNumberVersioningSystem implements VersioningSystem {
/** /**
* Contains the first number vector. * Contains the first number vector.

View file

@ -33,7 +33,7 @@ import org.jetbrains.annotations.Range;
* @since v1-alpha1 * @since v1-alpha1
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class TwoNumberVersioningSystem implements VersioningSystem { public final class TwoNumberVersioningSystem implements VersioningSystem {
/** /**
* Contains the first number vector. * Contains the first number vector.

View file

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

View file

@ -31,7 +31,6 @@ import de.staropensource.sosengine.base.logging.Logger;
* @see Logger#crash(Class, String, String, String, Throwable, boolean) * @see Logger#crash(Class, String, String, String, Throwable, boolean)
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings({ "unused" })
public final class EngineSoftCrashEvent implements Event { public final class EngineSoftCrashEvent implements Event {
/** /**
* Constructs this event. * Constructs this event.

View file

@ -30,7 +30,6 @@ import org.jetbrains.annotations.Nullable;
* *
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings({ "unused" })
public final class LogEvent implements Event { public final class LogEvent implements Event {
/** /**
* Constructs this event. * Constructs this event.

View file

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

View file

@ -28,7 +28,7 @@ import org.jetbrains.annotations.NotNull;
* @since v1-alpha1 * @since v1-alpha1
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public class UnexpectedThrowableException extends Exception { public class UnexpectedThrowableException extends Exception {
/** /**
* Contains the throwable supplied to the constructor. * Contains the throwable supplied to the constructor.

View file

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

View file

@ -33,7 +33,7 @@ import java.util.Map;
* @since v1-alpha1 * @since v1-alpha1
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public class UnmetDependenciesException extends Exception { public class UnmetDependenciesException extends Exception {
/** /**
* Contains the unmet dependencies list supplied to the constructor. * Contains the unmet dependencies list supplied to the constructor.

View file

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

View file

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

View file

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

View file

@ -26,7 +26,6 @@ import org.jetbrains.annotations.NotNull;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused" })
public class InvalidMethodSignature extends Exception { public class InvalidMethodSignature extends Exception {
/** /**
* Constructs this exception. * Constructs this exception.

View file

@ -26,7 +26,6 @@ import org.jetbrains.annotations.NotNull;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused" })
public class NoAccessException extends Exception { public class NoAccessException extends Exception {
/** /**
* Constructs this exception. * Constructs this exception.

View file

@ -28,7 +28,7 @@ import org.jetbrains.annotations.NotNull;
* @since v1-alpha2 * @since v1-alpha2
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public class StaticInitializerException extends Exception { public class StaticInitializerException extends Exception {
/** /**
* Contains the throwable thrown by the static initializer. * Contains the throwable thrown by the static initializer.

View file

@ -27,7 +27,6 @@ import de.staropensource.sosengine.base.classes.VersioningSystem;
* *
* @since v1-alpha1 * @since v1-alpha1
*/ */
@SuppressWarnings({ "unused" })
public class IncompatibleVersioningSystemException extends RuntimeException { public class IncompatibleVersioningSystemException extends RuntimeException {
/** /**
* Constructs this exception. * Constructs this exception.

View file

@ -32,7 +32,7 @@ import org.jetbrains.annotations.Nullable;
* @since v1-alpha1 * @since v1-alpha1
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public class InvalidVersionStringException extends Exception { public class InvalidVersionStringException extends Exception {
/** /**
* Contains the throwable supplied to the constructor. * Contains the throwable supplied to the constructor.

View file

@ -31,7 +31,6 @@ import java.lang.reflect.*;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused" })
public final class ReflectionAccessWidener { public final class ReflectionAccessWidener {
/** /**
* Constructs this class. * Constructs this class.

View file

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

View file

@ -44,7 +44,7 @@ import java.util.List;
* @see LoggerInstance * @see LoggerInstance
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class CrashHandler { public final class CrashHandler {
/** /**
* Contains the template used to print a crash report. * Contains the template used to print a crash report.

View file

@ -50,7 +50,7 @@ import java.util.List;
* @see CrashHandler * @see CrashHandler
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class Logger { public final class Logger {
/** /**
* Refers to the active {@link LoggerImplementation} that is used to process and print log messages. * Refers to the active {@link LoggerImplementation} that is used to process and print log messages.

View file

@ -31,7 +31,7 @@ import org.jetbrains.annotations.Nullable;
* @since v1-alpha0 * @since v1-alpha0
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class LoggerInstance { public final class LoggerInstance {
/** /**
* Contains the {@link Class} of the issuer. * Contains the {@link Class} of the issuer.

View file

@ -34,7 +34,6 @@ import org.jetbrains.annotations.Nullable;
* @see LoggerImplementation * @see LoggerImplementation
* @since v1-alpha1 * @since v1-alpha1
*/ */
@SuppressWarnings({ "unused" })
public class PlainLoggerImplementation implements LoggerImplementation { public class PlainLoggerImplementation implements LoggerImplementation {
/** /**
* Constructs this class. * Constructs this class.

View file

@ -34,7 +34,6 @@ import org.jetbrains.annotations.Nullable;
* @see LoggerImplementation * @see LoggerImplementation
* @since v1-alpha1 * @since v1-alpha1
*/ */
@SuppressWarnings({ "unused" })
public class RawLoggerImplementation implements LoggerImplementation { public class RawLoggerImplementation implements LoggerImplementation {
/** /**
* Constructs this class. * Constructs this class.

View file

@ -38,7 +38,6 @@ import java.util.Map;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused" })
public final class ClasspathAccess { public final class ClasspathAccess {
/** /**
* Contains the {@link LoggerInstance} for this instance. * Contains the {@link LoggerInstance} for this instance.

View file

@ -29,7 +29,6 @@ import java.lang.reflect.Method;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused" })
public final class Reflect { public final class Reflect {
/** /**
* Constructs this class. * Constructs this class.

View file

@ -36,7 +36,7 @@ import java.util.Set;
* @since v1-alpha1 * @since v1-alpha1
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public class DependencyVector { public class DependencyVector {
/** /**
* Contains the identifier of this vector. * Contains the identifier of this vector.

View file

@ -27,7 +27,6 @@ import de.staropensource.sosengine.base.logging.Logger;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused" })
public enum EngineState { public enum EngineState {
/** /**
* The state of the engine is currently unknown. * The state of the engine is currently unknown.

View file

@ -26,7 +26,7 @@ import de.staropensource.sosengine.base.annotations.EventListener;
* *
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings("unused") @SuppressWarnings({ "unused" })
public enum EventPriority { public enum EventPriority {
/** /**
* {@link EventListener}s with this priority are processed first, even before {@link #VERY_IMPORTANT}. * {@link EventListener}s with this priority are processed first, even before {@link #VERY_IMPORTANT}.

View file

@ -27,7 +27,6 @@ import org.jetbrains.annotations.NotNull;
* *
* @since v1-alpha1 * @since v1-alpha1
*/ */
@SuppressWarnings({ "unused" })
public enum Tristate { public enum Tristate {
/** /**
* An unset tristate. * An unset tristate.

View file

@ -27,7 +27,6 @@ import de.staropensource.sosengine.base.logging.Logger;
* @see Logger * @see Logger
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings({ "unused" })
public enum LogLevel { public enum LogLevel {
/** /**
* Indicates that the log call is diagnostic and solely provides debugging information. It is not important. * Indicates that the log call is diagnostic and solely provides debugging information. It is not important.

View file

@ -29,7 +29,7 @@ import org.jetbrains.annotations.Nullable;
* @since v1-alpha1 * @since v1-alpha1
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public abstract class LogRule { public abstract class LogRule {
/** /**
* Contains if the log rule should disallow or permit matching log calls. * Contains if the log rule should disallow or permit matching log calls.

View file

@ -24,7 +24,6 @@ package de.staropensource.sosengine.base.types.logging;
* *
* @since v1-alpha1 * @since v1-alpha1
*/ */
@SuppressWarnings({ "unused" })
public enum LogRuleType { public enum LogRuleType {
/** /**
* Indicates that log calls matching this rule will always be allowed, even if blacklisted. * Indicates that log calls matching this rule will always be allowed, even if blacklisted.

View file

@ -24,7 +24,6 @@ package de.staropensource.sosengine.base.types.reflection;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused" })
public enum ClassType { public enum ClassType {
/** /**
* Identifies the class as a {@code class} class. * Identifies the class as a {@code class} class.

View file

@ -28,7 +28,6 @@ import java.lang.reflect.Modifier;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused" })
public enum VisibilityModifier { public enum VisibilityModifier {
/** /**
* Marks the class, method or field as public. * Marks the class, method or field as public.

View file

@ -32,7 +32,7 @@ import org.jetbrains.annotations.NotNull;
*/ */
@Getter @Getter
@Setter @Setter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public class Vec2d { public class Vec2d {
/** /**
* The X axis value. * The X axis value.

View file

@ -32,7 +32,7 @@ import org.jetbrains.annotations.NotNull;
*/ */
@Getter @Getter
@Setter @Setter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public class Vec2f { public class Vec2f {
/** /**
* The X axis value. * The X axis value.

View file

@ -32,7 +32,7 @@ import org.jetbrains.annotations.NotNull;
*/ */
@Getter @Getter
@Setter @Setter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public class Vec2i implements Cloneable { public class Vec2i implements Cloneable {
/** /**
* The X axis value. * The X axis value.

View file

@ -32,7 +32,7 @@ import org.jetbrains.annotations.NotNull;
*/ */
@Getter @Getter
@Setter @Setter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public class Vec3d { public class Vec3d {
/** /**
* The X axis value. * The X axis value.

View file

@ -32,7 +32,7 @@ import org.jetbrains.annotations.NotNull;
*/ */
@Getter @Getter
@Setter @Setter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public class Vec3f { public class Vec3f {
/** /**
* The X axis value. * The X axis value.

View file

@ -32,7 +32,7 @@ import org.jetbrains.annotations.NotNull;
*/ */
@Getter @Getter
@Setter @Setter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public class Vec3i { public class Vec3i {
/** /**
* The X axis value. * The X axis value.

View file

@ -31,7 +31,6 @@ import java.util.Set;
* *
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings({ "unused" })
public final class ListFormatter { public final class ListFormatter {
/** /**
* Constructs this class. * Constructs this class.

View file

@ -30,7 +30,7 @@ import java.util.LinkedList;
* @since v1-alpha2 * @since v1-alpha2
*/ */
// 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 final class Math { public final class Math {
/** /**

View file

@ -35,7 +35,7 @@ import java.util.List;
* @see Placeholder * @see Placeholder
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class PlaceholderEngine { public final class PlaceholderEngine {
/** /**
* Contains the class instance. * Contains the class instance.

View file

@ -32,7 +32,7 @@ import java.util.Properties;
* @see Properties * @see Properties
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class PropertiesReader { public final class PropertiesReader {
/** /**
* Contains an instance providing access to the system properties. * Contains an instance providing access to the system properties.

View file

@ -29,7 +29,6 @@ import org.jetbrains.annotations.NotNull;
* @see ShortcodeParserSkeleton * @see ShortcodeParserSkeleton
* @since v1-alpha1 * @since v1-alpha1
*/ */
@SuppressWarnings({ "unused" })
public final class EmptyShortcodeConverter extends ShortcodeParserSkeleton { public final class EmptyShortcodeConverter extends ShortcodeParserSkeleton {
/** /**
* Constructs this class. * Constructs this class.

View file

@ -31,7 +31,6 @@ import org.jetbrains.annotations.NotNull;
* @since v1-alpha0 * @since v1-alpha0
*/ */
// TODO deprecate """parser""" and move getHeader() to Miscellaneous class // TODO deprecate """parser""" and move getHeader() to Miscellaneous class
@SuppressWarnings({ "unused" })
public final class StackTraceParser { public final class StackTraceParser {
/** /**
* Contains the {@link Throwable} to parse. * Contains the {@link Throwable} to parse.

View file

@ -29,7 +29,6 @@ import org.jetbrains.annotations.Nullable;
* *
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings("unused")
public class UnitLogger { public class UnitLogger {
/** /**
* The parent class, similar to {@link LoggerInstance}. * The parent class, similar to {@link LoggerInstance}.

View file

@ -35,7 +35,6 @@ import static org.junit.jupiter.api.Assertions.*;
* Tests the class {@link EngineConfiguration}. * Tests the class {@link EngineConfiguration}.
*/ */
@DisplayName("EngineConfiguration") @DisplayName("EngineConfiguration")
@SuppressWarnings({ "unused" })
class EngineConfigurationTest extends TestBase { class EngineConfigurationTest extends TestBase {
/** /**
* Tests the method {@code loadConfiguration}. * Tests the method {@code loadConfiguration}.

View file

@ -30,7 +30,6 @@ import java.util.Objects;
/** /**
* A class implemented by all tests. * A class implemented by all tests.
*/ */
@SuppressWarnings({ "unused" })
public class TestBase { public class TestBase {
/** /**
* Instance of this test class. * Instance of this test class.

View file

@ -33,7 +33,6 @@ import static org.junit.jupiter.api.Assertions.fail;
* Tests the class {@link FourNumberVersioningSystem}. * Tests the class {@link FourNumberVersioningSystem}.
*/ */
@DisplayName("FourNumberVersioningSystem") @DisplayName("FourNumberVersioningSystem")
@SuppressWarnings({ "unused" })
public class FourNumberVersioningSystemTest extends TestBase { public class FourNumberVersioningSystemTest extends TestBase {
/** /**
* Tests the method {@code compare}. * Tests the method {@code compare}.

View file

@ -34,7 +34,6 @@ import static org.junit.jupiter.api.Assertions.fail;
* Tests the class {@link TwoNumberVersioningSystem}. * Tests the class {@link TwoNumberVersioningSystem}.
*/ */
@DisplayName("OneNumberVersioningSystem") @DisplayName("OneNumberVersioningSystem")
@SuppressWarnings({ "unused" })
public class OneNumberVersioningSystemTest extends TestBase { public class OneNumberVersioningSystemTest extends TestBase {
/** /**
* Tests the method {@code compare}. * Tests the method {@code compare}.

View file

@ -33,7 +33,6 @@ import static org.junit.jupiter.api.Assertions.fail;
* Tests the class {@link SemanticVersioningSystem}. * Tests the class {@link SemanticVersioningSystem}.
*/ */
@DisplayName("SemanticVersioningSystem") @DisplayName("SemanticVersioningSystem")
@SuppressWarnings({ "unused" })
public class SemanticVersioningSystemTest extends TestBase { public class SemanticVersioningSystemTest extends TestBase {
/** /**
* Tests the method {@code compare}. * Tests the method {@code compare}.

View file

@ -34,7 +34,6 @@ import static org.junit.jupiter.api.Assertions.fail;
* Tests the class {@link SemanticVersioningSystem}. * Tests the class {@link SemanticVersioningSystem}.
*/ */
@DisplayName("StarOpenSourceVersioningSystem") @DisplayName("StarOpenSourceVersioningSystem")
@SuppressWarnings({ "unused" })
public class StarOpenSourceVersioningSystemTest extends TestBase { public class StarOpenSourceVersioningSystemTest extends TestBase {
/** /**
* Tests the method {@code compare}. * Tests the method {@code compare}.

View file

@ -33,7 +33,6 @@ import static org.junit.jupiter.api.Assertions.fail;
* Tests the class {@link ThreeNumberVersioningSystem}. * Tests the class {@link ThreeNumberVersioningSystem}.
*/ */
@DisplayName("ThreeNumberVersioningSystem") @DisplayName("ThreeNumberVersioningSystem")
@SuppressWarnings({ "unused" })
public class ThreeNumberVersioningSystemTest extends TestBase { public class ThreeNumberVersioningSystemTest extends TestBase {
/** /**
* Tests the method {@code compare}. * Tests the method {@code compare}.

View file

@ -33,7 +33,6 @@ import static org.junit.jupiter.api.Assertions.fail;
* Tests the class {@link TwoNumberVersioningSystem}. * Tests the class {@link TwoNumberVersioningSystem}.
*/ */
@DisplayName("TwoNumberVersioningSystem") @DisplayName("TwoNumberVersioningSystem")
@SuppressWarnings({ "unused" })
public class TwoNumberVersioningSystemTest extends TestBase { public class TwoNumberVersioningSystemTest extends TestBase {
/** /**
* Tests the method {@code compare}. * Tests the method {@code compare}.

View file

@ -43,7 +43,6 @@ import static org.junit.jupiter.api.Assertions.*;
* Tests the class {@link Miscellaneous}. * Tests the class {@link Miscellaneous}.
*/ */
@DisplayName("Miscellaneous") @DisplayName("Miscellaneous")
@SuppressWarnings({ "unused" })
public class MiscellaneousTest extends TestBase { public class MiscellaneousTest extends TestBase {
/** /**
* Used for testing the method {@code executeSafely}. * Used for testing the method {@code executeSafely}.
@ -171,6 +170,7 @@ public class MiscellaneousTest extends TestBase {
* @param identifier identifier * @param identifier identifier
*/ */
@EventListener(event = ThrowableCatchEvent.class) @EventListener(event = ThrowableCatchEvent.class)
@SuppressWarnings({ "unused" })
public static void onCaughtThrowable(@NotNull Throwable throwable, @NotNull String identifier) { public static void onCaughtThrowable(@NotNull Throwable throwable, @NotNull String identifier) {
getInstance().getLogger().diag("ThrowableCatchEvent received"); getInstance().getLogger().diag("ThrowableCatchEvent received");
throwableCaught = true; throwableCaught = true;

View file

@ -36,7 +36,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
* Tests the class {@link PlaceholderEngine}. * Tests the class {@link PlaceholderEngine}.
*/ */
@DisplayName("PlaceholderEngine") @DisplayName("PlaceholderEngine")
@SuppressWarnings({ "unused" })
class PlaceholderEngineTest extends TestBase { class PlaceholderEngineTest extends TestBase {
/** /**
* Tests the method {@code process}. * Tests the method {@code process}.

View file

@ -45,7 +45,7 @@ import static org.lwjgl.glfw.GLFW.*;
* @since v1-alpha2 * @since v1-alpha2
*/ */
@EngineSubsystem @EngineSubsystem
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class GlfwSubsystem extends SubsystemClass { public final class GlfwSubsystem extends SubsystemClass {
/** /**
* Contains the class instance. * Contains the class instance.

View file

@ -32,7 +32,7 @@ import org.jetbrains.annotations.Nullable;
* @since v1-alpha2 * @since v1-alpha2
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class GlfwSubsystemConfiguration extends Configuration { public final class GlfwSubsystemConfiguration extends Configuration {
/** /**
* Contains the class instance. * Contains the class instance.

View file

@ -34,7 +34,6 @@ import static org.lwjgl.glfw.GLFW.*;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused" })
public final class KeyCallback extends WindowCallback implements GLFWKeyCallbackI { public final class KeyCallback extends WindowCallback implements GLFWKeyCallbackI {
/** /**
* An {@link InputEvent} instance, to avoid creating too many objects * An {@link InputEvent} instance, to avoid creating too many objects

View file

@ -34,7 +34,6 @@ import static org.lwjgl.glfw.GLFW.*;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused" })
public final class MouseButtonCallback extends WindowCallback implements GLFWMouseButtonCallbackI { public final class MouseButtonCallback extends WindowCallback implements GLFWMouseButtonCallbackI {
/** /**
* An {@link InputEvent} instance, to avoid creating too many objects * An {@link InputEvent} instance, to avoid creating too many objects

View file

@ -38,7 +38,7 @@ import static org.lwjgl.glfw.GLFW.glfwGetMonitors;
* @since v1-alpha2 * @since v1-alpha2
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public abstract class GlfwInternalClass implements ApiInternalClass { public abstract class GlfwInternalClass implements ApiInternalClass {
/** /**
* Contains the {@link LoggerInstance} for this instance. * Contains the {@link LoggerInstance} for this instance.

View file

@ -35,7 +35,7 @@ import static org.lwjgl.glfw.GLFW.*;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public class GlfwMonitor extends Monitor { public class GlfwMonitor extends Monitor {
/** /**
* Contains the {@link #identifier} as a long. * Contains the {@link #identifier} as a long.

View file

@ -51,7 +51,7 @@ import static org.lwjgl.glfw.GLFW.*;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public abstract class GlfwWindow extends Window { public abstract class GlfwWindow extends Window {
/** /**
* Contains the {@link #identifier} used by GLFW. * Contains the {@link #identifier} used by GLFW.

View file

@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull;
* @since v1-alpha2 * @since v1-alpha2
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public abstract class WindowCallback { public abstract class WindowCallback {
/** /**
* Refers to the {@link Window} instance * Refers to the {@link Window} instance

View file

@ -24,7 +24,6 @@ package de.staropensource.sosengine.graphics.glfw.types;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused" })
public enum GlfwPlatform { public enum GlfwPlatform {
/** /**
* Allows GLFW to autodetect the platform to use. * Allows GLFW to autodetect the platform to use.

View file

@ -26,7 +26,6 @@ import de.staropensource.sosengine.graphics.glfw.classes.GlfwManagementClass;
* *
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings({ "unused" })
public final class OpenGlManagement extends GlfwManagementClass { public final class OpenGlManagement extends GlfwManagementClass {
/** /**
* Constructs this class. * Constructs this class.

View file

@ -49,7 +49,7 @@ import static org.lwjgl.glfw.GLFW.*;
* @since v1-alpha0 * @since v1-alpha0
*/ */
@EngineSubsystem @EngineSubsystem
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class OpenGlSubsystem extends ApiClass { public final class OpenGlSubsystem extends ApiClass {
/** /**
* Contains the class instance. * Contains the class instance.
@ -184,6 +184,7 @@ public final class OpenGlSubsystem extends ApiClass {
* @since v1-alpha0 * @since v1-alpha0
*/ */
@EventListener(event = GraphicsErrorEvent.class, priority = EventPriority.EXCLUSIVELY_IMPORTANT) @EventListener(event = GraphicsErrorEvent.class, priority = EventPriority.EXCLUSIVELY_IMPORTANT)
@SuppressWarnings({ "unused" })
public static void onGraphicsError(String error) { public static void onGraphicsError(String error) {
instance.logger.error("OpenGL returned an error: " + error); instance.logger.error("OpenGL returned an error: " + error);
} }
@ -195,6 +196,7 @@ public final class OpenGlSubsystem extends ApiClass {
* @since v1-alpha0 * @since v1-alpha0
*/ */
@EventListener(event = GraphicsApiErrorEvent.class, priority = EventPriority.EXCLUSIVELY_IMPORTANT) @EventListener(event = GraphicsApiErrorEvent.class, priority = EventPriority.EXCLUSIVELY_IMPORTANT)
@SuppressWarnings({ "unused" })
public static void onGraphicsApiError(String error) { public static void onGraphicsApiError(String error) {
instance.logger.error("Graphics API returned an error: " + error); instance.logger.error("Graphics API returned an error: " + error);
} }

View file

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

View file

@ -49,7 +49,7 @@ import java.util.Map;
* @since v1-alpha0 * @since v1-alpha0
*/ */
@EngineSubsystem @EngineSubsystem
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class GraphicsSubsystem extends SubsystemClass { public final class GraphicsSubsystem extends SubsystemClass {
/** /**
* Contains the class instance. * Contains the class instance.
@ -154,6 +154,7 @@ public final class GraphicsSubsystem extends SubsystemClass {
* @since v1-alpha0 * @since v1-alpha0
*/ */
@EventListener(event = InternalEngineShutdownEvent.class) @EventListener(event = InternalEngineShutdownEvent.class)
@SuppressWarnings({ "unused" })
protected static void shutdownSubsystem() { protected static void shutdownSubsystem() {
LoggerInstance logger = instance.logger; LoggerInstance logger = instance.logger;
logger.verb("Shutting down"); logger.verb("Shutting down");

View file

@ -33,7 +33,7 @@ import org.jetbrains.annotations.Nullable;
* @since v1-alpha0 * @since v1-alpha0
*/ */
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public final class GraphicsSubsystemConfiguration extends Configuration { public final class GraphicsSubsystemConfiguration extends Configuration {
/** /**
* Contains the class instance. * Contains the class instance.

View file

@ -40,7 +40,7 @@ import java.util.UUID;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public abstract class Monitor { public abstract class Monitor {
/** /**
* Contains the {@link LoggerInstance} for this instance. * Contains the {@link LoggerInstance} for this instance.

View file

@ -46,7 +46,7 @@ import java.util.UUID;
*/ */
// TODO monitors // TODO monitors
@Getter @Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public abstract class Window implements AutoCloseable { public abstract class Window implements AutoCloseable {
/** /**
* A set of all active windows. * A set of all active windows.

View file

@ -30,7 +30,6 @@ import org.jetbrains.annotations.NotNull;
* *
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings({ "unused" })
public abstract class ApiClass extends SubsystemClass { public abstract class ApiClass extends SubsystemClass {
/** /**
* Constructs this class. * Constructs this class.
@ -100,5 +99,6 @@ public abstract class ApiClass extends SubsystemClass {
* @since v1-alpha0 * @since v1-alpha0
*/ */
@EventListener(event = GraphicsErrorEvent.class) @EventListener(event = GraphicsErrorEvent.class)
@SuppressWarnings({ "unused" })
public static void onGraphicsError(String error) {} public static void onGraphicsError(String error) {}
} }

View file

@ -31,7 +31,6 @@ import java.util.LinkedHashSet;
* *
* @since v1-alpha2 * @since v1-alpha2
*/ */
@SuppressWarnings({ "unused" })
public interface ApiInternalClass { public interface ApiInternalClass {
/** /**
* Returns the {@link Window} class of the Graphics API. * Returns the {@link Window} class of the Graphics API.

View file

@ -38,7 +38,7 @@ import java.util.concurrent.atomic.AtomicReference;
* *
* @since v1-alpha0 * @since v1-alpha0
*/ */
@SuppressWarnings({ "unused", "JavadocDeclaration" }) @SuppressWarnings({ "JavadocDeclaration" })
public abstract class ApiManagementClass { public abstract class ApiManagementClass {
/** /**
* Contains the {@link LoggerInstance} for this instance. * Contains the {@link LoggerInstance} for this instance.

View file

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

View file

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

View file

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

Some files were not shown because too many files have changed in this diff Show more