Compare commits

...

4 commits

Author SHA1 Message Date
43e038d3ec
Add correct @since tag to ListFormatter
All checks were successful
build-and-test / test (push) Successful in 1m33s
build-and-test / build (push) Successful in 1m40s
build-and-test / generate-javadoc (push) Successful in 4m18s
2024-08-19 02:49:46 +02:00
781f1c113c
Remove unused and leftover methods 2024-08-19 02:49:31 +02:00
f828d31094
Remove args from Main#run method 2024-08-19 02:49:14 +02:00
9ff4f96814
Remove many unused warning supressions
Why did I add this to every single class file in the first place...?
2024-08-19 02:49:00 +02:00
112 changed files with 66 additions and 166 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -50,7 +50,7 @@ import java.util.List;
* @see CrashHandler
* @since v1-alpha0
*/
@SuppressWarnings({ "unused", "JavadocDeclaration" })
@SuppressWarnings({ "JavadocDeclaration" })
public final class Logger {
/**
* 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
*/
@Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" })
@SuppressWarnings({ "JavadocDeclaration" })
public final class LoggerInstance {
/**
* Contains the {@link Class} of the issuer.

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -26,7 +26,7 @@ import de.staropensource.sosengine.base.annotations.EventListener;
*
* @since v1-alpha0
*/
@SuppressWarnings("unused")
@SuppressWarnings({ "unused" })
public enum EventPriority {
/**
* {@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
*/
@SuppressWarnings({ "unused" })
public enum Tristate {
/**
* An unset tristate.

View file

@ -27,7 +27,6 @@ import de.staropensource.sosengine.base.logging.Logger;
* @see Logger
* @since v1-alpha0
*/
@SuppressWarnings({ "unused" })
public enum LogLevel {
/**
* 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
*/
@Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" })
@SuppressWarnings({ "JavadocDeclaration" })
public abstract class LogRule {
/**
* 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
*/
@SuppressWarnings({ "unused" })
public enum LogRuleType {
/**
* 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
*/
@SuppressWarnings({ "unused" })
public enum ClassType {
/**
* Identifies the class as a {@code class} class.

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -27,14 +27,14 @@ import java.util.Set;
/**
* Converts various data types to {@link String}s.
* This class is unfinished.
*
* @since v1-alpha0
* @since v1-alpha4
*/
@SuppressWarnings({ "unused" })
public final class ListFormatter {
/**
* Constructs this class.
*
* @since v1-alpha4
*/
public ListFormatter() {}
@ -43,6 +43,7 @@ public final class ListFormatter {
*
* @param array array to convert
* @return formatted string
* @since v1-alpha4
*/
public static @NotNull String formatArray(@NotNull Object[] array) {
StringBuilder output = new StringBuilder();
@ -65,6 +66,7 @@ public final class ListFormatter {
*
* @param set set to convert
* @return formatted string
* @since v1-alpha4
*/
public static @NotNull String formatSet(@NotNull Set<?> set) {
return formatArray(set.toArray());
@ -75,6 +77,7 @@ public final class ListFormatter {
*
* @param list list to convert
* @return formatted string
* @since v1-alpha4
*/
public static @NotNull String formatList(@NotNull List<?> list) {
return formatArray(list.toArray());
@ -85,6 +88,7 @@ public final class ListFormatter {
*
* @param map map to convert
* @return formatted string
* @since v1-alpha4
*/
public static @NotNull String formatMap(@NotNull Map<?, ?> map) {
StringBuilder output = new StringBuilder();

View file

@ -30,7 +30,7 @@ import java.util.LinkedList;
* @since v1-alpha2
*/
// All mean and double methods have been sourced
// from https://stackoverflow.com/a/4191729, tysm
// from https://stackoverflow.com/a/4191729, tysm!
@SuppressWarnings({ "unused" })
public final class Math {
/**

View file

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

View file

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

View file

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

View file

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

View file

@ -29,7 +29,6 @@ import org.jetbrains.annotations.Nullable;
*
* @since v1-alpha0
*/
@SuppressWarnings("unused")
public class UnitLogger {
/**
* 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}.
*/
@DisplayName("EngineConfiguration")
@SuppressWarnings({ "unused" })
class EngineConfigurationTest extends TestBase {
/**
* Tests the method {@code loadConfiguration}.

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -34,7 +34,6 @@ import static org.lwjgl.glfw.GLFW.*;
*
* @since v1-alpha2
*/
@SuppressWarnings({ "unused" })
public final class KeyCallback extends WindowCallback implements GLFWKeyCallbackI {
/**
* 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
*/
@SuppressWarnings({ "unused" })
public final class MouseButtonCallback extends WindowCallback implements GLFWMouseButtonCallbackI {
/**
* 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
*/
@Getter
@SuppressWarnings({ "unused", "JavadocDeclaration" })
@SuppressWarnings({ "JavadocDeclaration" })
public abstract class GlfwInternalClass implements ApiInternalClass {
/**
* Contains the {@link LoggerInstance} for this instance.

View file

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

View file

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

View file

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

View file

@ -24,7 +24,6 @@ package de.staropensource.sosengine.graphics.glfw.types;
*
* @since v1-alpha2
*/
@SuppressWarnings({ "unused" })
public enum GlfwPlatform {
/**
* 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
*/
@SuppressWarnings({ "unused" })
public final class OpenGlManagement extends GlfwManagementClass {
/**
* Constructs this class.

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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