From f96584ccd96a62d67121d2e2d5ded202fa9a8dd9 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 6 Sep 2024 21:00:22 +0200 Subject: [PATCH] 'final'lize slf4j-compat classes --- .../sosengine/slf4j_compat/CompatibilityLogger.java | 2 +- .../sosengine/slf4j_compat/CompatibilityLoggerFactory.java | 2 +- .../sosengine/slf4j_compat/CompatibilityLoggerProvider.java | 2 +- .../sosengine/slf4j_compat/Slf4jCompatSubsystem.java | 2 +- .../de/staropensource/sosengine/slf4j_compat/package-info.java | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLogger.java b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLogger.java index ad6177513..cfbf2b062 100644 --- a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLogger.java +++ b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLogger.java @@ -34,7 +34,7 @@ import org.slf4j.helpers.MessageFormatter; * * @since v1-alpha0 */ -public class CompatibilityLogger extends LegacyAbstractLogger { +public final class CompatibilityLogger extends LegacyAbstractLogger { /** * Logger instance, used to print all log messages coming from SLF4J. * diff --git a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLoggerFactory.java b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLoggerFactory.java index c3506af3a..53a5b5839 100644 --- a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLoggerFactory.java +++ b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLoggerFactory.java @@ -31,7 +31,7 @@ import java.util.concurrent.ConcurrentMap; * * @since v1-alpha0 */ -public class CompatibilityLoggerFactory implements ILoggerFactory { +public final class CompatibilityLoggerFactory implements ILoggerFactory { ConcurrentMap<@NotNull String, @NotNull Logger> loggerMap; /** diff --git a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLoggerProvider.java b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLoggerProvider.java index 8023ebd8e..232a9d915 100644 --- a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLoggerProvider.java +++ b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/CompatibilityLoggerProvider.java @@ -35,7 +35,7 @@ import org.slf4j.spi.SLF4JServiceProvider; * @since v1-alpha0 */ @Getter -public class CompatibilityLoggerProvider implements SLF4JServiceProvider { +public final class CompatibilityLoggerProvider implements SLF4JServiceProvider { /** * Contains a {@link CompatibilityLoggerFactory}. * diff --git a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/Slf4jCompatSubsystem.java b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/Slf4jCompatSubsystem.java index ef8e0e354..2b738b9a7 100644 --- a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/Slf4jCompatSubsystem.java +++ b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/Slf4jCompatSubsystem.java @@ -42,7 +42,7 @@ import org.slf4j.LoggerFactory; */ @EngineSubsystem @SuppressWarnings({ "JavadocDeclaration" }) -public class Slf4jCompatSubsystem extends SubsystemClass { +public final class Slf4jCompatSubsystem extends SubsystemClass { /** * Contains the class instance. * diff --git a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/package-info.java b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/package-info.java index ea1750bbc..1c2dd1f7c 100644 --- a/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/package-info.java +++ b/slf4j-compat/src/main/java/de/staropensource/sosengine/slf4j_compat/package-info.java @@ -21,5 +21,6 @@ * Code of the SLF4J Compatibility subsystem. * * @see de.staropensource.sosengine.slf4j_compat.Slf4jCompatSubsystem#Slf4jCompatSubsystem() + * @since v1-alpha0 */ package de.staropensource.sosengine.slf4j_compat;