From b4cf8f81b1d7dc5bd86e1961888154ac67e88113 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 9 Jun 2024 19:57:12 +0200 Subject: [PATCH] Update 'final' class modifier --- .../de/staropensource/sosengine/base/Engine.java | 8 ++++---- .../sosengine/base/EngineConfiguration.java | 2 +- .../sosengine/base/data/info/EngineInformation.java | 2 +- .../sosengine/base/data/info/JvmInformation.java | 2 +- .../sosengine/base/data/placeholders/DateDay.java | 2 +- .../sosengine/base/data/placeholders/DateMonth.java | 2 +- .../sosengine/base/data/placeholders/DateYear.java | 2 +- .../data/placeholders/EngineDependencyJansi.java | 2 +- .../EngineDependencyJetbrainsAnnotations.java | 2 +- .../data/placeholders/EngineDependencyLombok.java | 2 +- .../base/data/placeholders/EnginePluginLombok.java | 2 +- .../base/data/placeholders/EnginePluginShadow.java | 2 +- .../base/data/placeholders/EngineVersion.java | 2 +- .../base/data/placeholders/EngineVersionFork.java | 2 +- .../base/data/placeholders/EngineVersionType.java | 2 +- .../data/placeholders/EngineVersionTyperelease.java | 2 +- .../data/placeholders/EngineVersionVersion.java | 2 +- .../base/data/placeholders/JvmArguments.java | 2 +- .../data/placeholders/JvmImplementationName.java | 2 +- .../data/placeholders/JvmImplementationVendor.java | 2 +- .../data/placeholders/JvmImplementationVersion.java | 2 +- .../sosengine/base/data/placeholders/JvmJava.java | 2 +- .../sosengine/base/data/placeholders/JvmUptime.java | 2 +- .../sosengine/base/data/placeholders/TimeEpoch.java | 2 +- .../sosengine/base/data/placeholders/TimeHour.java | 2 +- .../base/data/placeholders/TimeMinute.java | 2 +- .../base/data/placeholders/TimeSecond.java | 2 +- .../sosengine/base/data/placeholders/TimeZone.java | 2 +- .../sosengine/base/logging/CrashHandler.java | 2 +- .../sosengine/base/logging/Logger.java | 2 +- .../sosengine/base/logging/LoggerInstance.java | 2 +- .../placeholders/crashhandler/IssuerClass.java | 2 +- .../placeholders/crashhandler/IssuerCodePart.java | 2 +- .../placeholders/crashhandler/IssuerInfo.java | 2 +- .../placeholders/crashhandler/IssuerMessage.java | 2 +- .../placeholders/crashhandler/IssuerPackage.java | 2 +- .../placeholders/crashhandler/IssuerPath.java | 2 +- .../placeholders/crashhandler/Stacktrace.java | 2 +- .../base/logging/placeholders/logger/LogClass.java | 2 +- .../logging/placeholders/logger/LogCodePart.java | 2 +- .../placeholders/logger/LogColorPrimary.java | 2 +- .../placeholders/logger/LogColorSecondary.java | 2 +- .../base/logging/placeholders/logger/LogInfo.java | 2 +- .../base/logging/placeholders/logger/LogLevel.java | 2 +- .../logging/placeholders/logger/LogMessage.java | 2 +- .../logging/placeholders/logger/LogPackage.java | 2 +- .../base/logging/placeholders/logger/LogPath.java | 2 +- .../sosengine/base/utility/Miscellaneous.java | 2 +- .../sosengine/base/utility/PlaceholderEngine.java | 2 +- .../sosengine/base/utility/PropertyParser.java | 2 +- .../sosengine/base/utility/StackTraceParser.java | 13 +++++++++++-- 51 files changed, 64 insertions(+), 55 deletions(-) diff --git a/base/src/main/java/de/staropensource/sosengine/base/Engine.java b/base/src/main/java/de/staropensource/sosengine/base/Engine.java index b05ed3d..ee2bfe3 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/Engine.java +++ b/base/src/main/java/de/staropensource/sosengine/base/Engine.java @@ -40,7 +40,7 @@ import java.util.Map; * @since 1-alpha0 */ @SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" }) -public class Engine { +public final class Engine { /** * Instance. * @@ -112,7 +112,7 @@ public class Engine { * * @since 1-alpha0 */ - protected void initializeClasses() { + private void initializeClasses() { // Sorted in rough order of dependence new EngineInformation(); new PlaceholderEngine(); @@ -124,7 +124,7 @@ public class Engine { * * @since 1-alpha0 */ - protected void initializeEvents() { + private void initializeEvents() { } /** @@ -134,7 +134,7 @@ public class Engine { * @since 1-alpha0 */ @SuppressWarnings("ExtractMethodRecommender") - protected void populateCrashContent() { + private void populateCrashContent() { // Issuer Map crashContentIssuer = new LinkedHashMap<>(); crashContentIssuer.put("Code part", "%issuer_code_part%"); diff --git a/base/src/main/java/de/staropensource/sosengine/base/EngineConfiguration.java b/base/src/main/java/de/staropensource/sosengine/base/EngineConfiguration.java index 6c0f36b..767983c 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/EngineConfiguration.java +++ b/base/src/main/java/de/staropensource/sosengine/base/EngineConfiguration.java @@ -37,7 +37,7 @@ import java.util.Properties; */ @SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" }) @Getter -public class EngineConfiguration { +public final class EngineConfiguration { /** * Instance. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/info/EngineInformation.java b/base/src/main/java/de/staropensource/sosengine/base/data/info/EngineInformation.java index 5d5074c..f63abe8 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/info/EngineInformation.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/info/EngineInformation.java @@ -35,7 +35,7 @@ import java.util.Properties; */ @SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" }) @Getter -public class EngineInformation { +public final class EngineInformation { /** * Instance. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/info/JvmInformation.java b/base/src/main/java/de/staropensource/sosengine/base/data/info/JvmInformation.java index 4026f52..6610655 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/info/JvmInformation.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/info/JvmInformation.java @@ -26,7 +26,7 @@ import java.util.List; * Provides information about the running Java Virtual Machine. */ @SuppressWarnings({ "unused" }) -public class JvmInformation { +public final class JvmInformation { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/DateDay.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/DateDay.java index 5200f08..6ff3d19 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/DateDay.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/DateDay.java @@ -32,7 +32,7 @@ import java.util.Calendar; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class DateDay implements Placeholder { +public final class DateDay implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/DateMonth.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/DateMonth.java index 01a2228..72b5734 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/DateMonth.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/DateMonth.java @@ -32,7 +32,7 @@ import java.util.Calendar; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class DateMonth implements Placeholder { +public final class DateMonth implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/DateYear.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/DateYear.java index 1b06947..8ab7210 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/DateYear.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/DateYear.java @@ -32,7 +32,7 @@ import java.util.Calendar; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class DateYear implements Placeholder { +public final class DateYear implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyJansi.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyJansi.java index 1b61def..a903a0d 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyJansi.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyJansi.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class EngineDependencyJansi implements Placeholder { +public final class EngineDependencyJansi implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyJetbrainsAnnotations.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyJetbrainsAnnotations.java index f1fbe14..8fb49a9 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyJetbrainsAnnotations.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyJetbrainsAnnotations.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @see Placeholder */ @SuppressWarnings({ "unused" }) -public class EngineDependencyJetbrainsAnnotations implements Placeholder { +public final class EngineDependencyJetbrainsAnnotations implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyLombok.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyLombok.java index 6b979c2..7f3f400 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyLombok.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyLombok.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class EngineDependencyLombok implements Placeholder { +public final class EngineDependencyLombok implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EnginePluginLombok.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EnginePluginLombok.java index 81c0d07..182d0d0 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EnginePluginLombok.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EnginePluginLombok.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class EnginePluginLombok implements Placeholder { +public final class EnginePluginLombok implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EnginePluginShadow.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EnginePluginShadow.java index 8543420..bba2189 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EnginePluginShadow.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EnginePluginShadow.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class EnginePluginShadow implements Placeholder { +public final class EnginePluginShadow implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersion.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersion.java index 68c691c..0c209c2 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersion.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersion.java @@ -29,7 +29,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class EngineVersion implements Placeholder { +public final class EngineVersion implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionFork.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionFork.java index 7ab2cf3..998fd4d 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionFork.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionFork.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class EngineVersionFork implements Placeholder { +public final class EngineVersionFork implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionType.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionType.java index 7835725..db4c955 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionType.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionType.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class EngineVersionType implements Placeholder { +public final class EngineVersionType implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionTyperelease.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionTyperelease.java index fb4c360..7d079ff 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionTyperelease.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionTyperelease.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class EngineVersionTyperelease implements Placeholder { +public final class EngineVersionTyperelease implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionVersion.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionVersion.java index e1b8a14..f2773d1 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionVersion.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionVersion.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class EngineVersionVersion implements Placeholder { +public final class EngineVersionVersion implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmArguments.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmArguments.java index 2bf1a52..f8b5bac 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmArguments.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmArguments.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class JvmArguments implements Placeholder { +public final class JvmArguments implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmImplementationName.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmImplementationName.java index 239f2b0..e4bb4eb 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmImplementationName.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmImplementationName.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class JvmImplementationName implements Placeholder { +public final class JvmImplementationName implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmImplementationVendor.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmImplementationVendor.java index 9b60f90..bc3854a 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmImplementationVendor.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmImplementationVendor.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class JvmImplementationVendor implements Placeholder { +public final class JvmImplementationVendor implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmImplementationVersion.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmImplementationVersion.java index c284892..c862787 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmImplementationVersion.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmImplementationVersion.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class JvmImplementationVersion implements Placeholder { +public final class JvmImplementationVersion implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmJava.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmJava.java index 5a0c0e0..8ea1e7a 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmJava.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmJava.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class JvmJava implements Placeholder { +public final class JvmJava implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmUptime.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmUptime.java index c0a8d2c..f5a315e 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmUptime.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/JvmUptime.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class JvmUptime implements Placeholder { +public final class JvmUptime implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeEpoch.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeEpoch.java index 75f2762..4846d01 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeEpoch.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeEpoch.java @@ -31,7 +31,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class TimeEpoch implements Placeholder { +public final class TimeEpoch implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeHour.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeHour.java index 41e1fca..5580132 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeHour.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeHour.java @@ -32,7 +32,7 @@ import java.util.Calendar; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class TimeHour implements Placeholder { +public final class TimeHour implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeMinute.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeMinute.java index 776cf84..13d44f5 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeMinute.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeMinute.java @@ -32,7 +32,7 @@ import java.util.Calendar; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class TimeMinute implements Placeholder { +public final class TimeMinute implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeSecond.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeSecond.java index 8c433d8..332ac44 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeSecond.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeSecond.java @@ -32,7 +32,7 @@ import java.util.Calendar; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class TimeSecond implements Placeholder { +public final class TimeSecond implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeZone.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeZone.java index f17b9d5..3f7a8a1 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeZone.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/TimeZone.java @@ -31,7 +31,7 @@ import java.util.Locale; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class TimeZone implements Placeholder { +public final class TimeZone implements Placeholder { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/CrashHandler.java b/base/src/main/java/de/staropensource/sosengine/base/logging/CrashHandler.java index 1cb4653..01b52a3 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/CrashHandler.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/CrashHandler.java @@ -41,7 +41,7 @@ import java.util.*; * @since 1-alpha0 */ @SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" }) -public class CrashHandler { +public final class CrashHandler { /** * Hopefully {@code false} :)
* Note: Switching this to true might cause issues. Just don't do it ^^ diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/Logger.java b/base/src/main/java/de/staropensource/sosengine/base/logging/Logger.java index 2857d75..3134de1 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/Logger.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/Logger.java @@ -42,7 +42,7 @@ import java.util.List; * @see LogLevel */ @SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" }) -public class Logger { +public final class Logger { /** * Refers to the active {@link LoggerImpl} that is used to process and print log messages. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/LoggerInstance.java b/base/src/main/java/de/staropensource/sosengine/base/logging/LoggerInstance.java index 75c5ac2..23f690e 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/LoggerInstance.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/LoggerInstance.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; */ @SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" }) @Getter -public class LoggerInstance { +public final class LoggerInstance { /** * Contains the class that this {@link LoggerInstance} belongs to. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerClass.java b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerClass.java index 2f9b2b8..9cc77d7 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerClass.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerClass.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class IssuerClass implements Placeholder { +public final class IssuerClass implements Placeholder { /** * The {@link LogIssuer} to use. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerCodePart.java b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerCodePart.java index bfab624..44e666f 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerCodePart.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerCodePart.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class IssuerCodePart implements Placeholder { +public final class IssuerCodePart implements Placeholder { /** * The {@link LogIssuer} to use. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerInfo.java b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerInfo.java index 8b809fa..ba03d1a 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerInfo.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerInfo.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class IssuerInfo implements Placeholder { +public final class IssuerInfo implements Placeholder { /** * The {@link LogIssuer} to use. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerMessage.java b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerMessage.java index de7b14b..c8d7979 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerMessage.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerMessage.java @@ -29,7 +29,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class IssuerMessage implements Placeholder { +public final class IssuerMessage implements Placeholder { /** * The message to use. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerPackage.java b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerPackage.java index b5dd81f..43e762b 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerPackage.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerPackage.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class IssuerPackage implements Placeholder { +public final class IssuerPackage implements Placeholder { /** * The {@link LogIssuer} to use. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerPath.java b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerPath.java index cef3712..318ebda 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerPath.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/IssuerPath.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class IssuerPath implements Placeholder { +public final class IssuerPath implements Placeholder { /** * The {@link LogIssuer} to use. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/Stacktrace.java b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/Stacktrace.java index 7a03063..c6bfd86 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/Stacktrace.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/crashhandler/Stacktrace.java @@ -31,7 +31,7 @@ import org.jetbrains.annotations.Nullable; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class Stacktrace implements Placeholder { +public final class Stacktrace implements Placeholder { /** * The {@link Exception} to use. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogClass.java b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogClass.java index 6fb7e08..5fa5f3f 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogClass.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogClass.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class LogClass implements Placeholder { +public final class LogClass implements Placeholder { /** * The {@link LogIssuer} to use. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogCodePart.java b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogCodePart.java index 33609e8..083200d 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogCodePart.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogCodePart.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class LogCodePart implements Placeholder { +public final class LogCodePart implements Placeholder { /** * The {@link LogIssuer} to use. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogColorPrimary.java b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogColorPrimary.java index 93c8382..07a9fda 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogColorPrimary.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogColorPrimary.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class LogColorPrimary implements Placeholder { +public final class LogColorPrimary implements Placeholder { /** * The {@link LogLevel} to use. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogColorSecondary.java b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogColorSecondary.java index d66def0..15b7c57 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogColorSecondary.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogColorSecondary.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class LogColorSecondary implements Placeholder { +public final class LogColorSecondary implements Placeholder { /** * The {@link LogLevel} to use. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogInfo.java b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogInfo.java index 56e21c6..07c7df8 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogInfo.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogInfo.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class LogInfo implements Placeholder { +public final class LogInfo implements Placeholder { /** * The {@link LogIssuer} to use * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogLevel.java b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogLevel.java index 7e424cf..7ae9975 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogLevel.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogLevel.java @@ -29,7 +29,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class LogLevel implements Placeholder { +public final class LogLevel implements Placeholder { /** * The {@link de.staropensource.sosengine.base.types.LogLevel} to use. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogMessage.java b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogMessage.java index fd972dd..46ef070 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogMessage.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogMessage.java @@ -29,7 +29,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class LogMessage implements Placeholder { +public final class LogMessage implements Placeholder { /** * The message to use. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogPackage.java b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogPackage.java index 8a0698c..67044d7 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogPackage.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogPackage.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class LogPackage implements Placeholder { +public final class LogPackage implements Placeholder { /** * The {@link LogIssuer} to use. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogPath.java b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogPath.java index 8bb8ea4..39b1243 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogPath.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/placeholders/logger/LogPath.java @@ -30,7 +30,7 @@ import org.jetbrains.annotations.NotNull; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class LogPath implements Placeholder { +public final class LogPath implements Placeholder { /** * The {@link LogIssuer} to use. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/utility/Miscellaneous.java b/base/src/main/java/de/staropensource/sosengine/base/utility/Miscellaneous.java index ee9019c..11ad9e2 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/utility/Miscellaneous.java +++ b/base/src/main/java/de/staropensource/sosengine/base/utility/Miscellaneous.java @@ -29,7 +29,7 @@ import java.lang.ref.WeakReference; * @since 1-alpha0 */ @SuppressWarnings({ "unused" }) -public class Miscellaneous { +public final class Miscellaneous { /** * Constructor. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/utility/PlaceholderEngine.java b/base/src/main/java/de/staropensource/sosengine/base/utility/PlaceholderEngine.java index 24a5062..fafe3b5 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/utility/PlaceholderEngine.java +++ b/base/src/main/java/de/staropensource/sosengine/base/utility/PlaceholderEngine.java @@ -37,7 +37,7 @@ import java.util.List; * @since 1-alpha0 */ @SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" }) -public class PlaceholderEngine { +public final class PlaceholderEngine { /** * Instance. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/utility/PropertyParser.java b/base/src/main/java/de/staropensource/sosengine/base/utility/PropertyParser.java index 10d2e15..02f5415 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/utility/PropertyParser.java +++ b/base/src/main/java/de/staropensource/sosengine/base/utility/PropertyParser.java @@ -34,7 +34,7 @@ import java.util.Properties; */ @SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" }) @NotNull -public final class PropertyParser { +public class PropertyParser { /** * Instance providing access to the JVM-wide properties. * diff --git a/base/src/main/java/de/staropensource/sosengine/base/utility/StackTraceParser.java b/base/src/main/java/de/staropensource/sosengine/base/utility/StackTraceParser.java index bad06e6..7ecce8d 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/utility/StackTraceParser.java +++ b/base/src/main/java/de/staropensource/sosengine/base/utility/StackTraceParser.java @@ -19,6 +19,8 @@ package de.staropensource.sosengine.base.utility; +import lombok.AccessLevel; +import lombok.Getter; import org.jetbrains.annotations.NotNull; /** @@ -27,14 +29,21 @@ import org.jetbrains.annotations.NotNull; * @see Exception * @since 1-alpha0 */ -@SuppressWarnings({ "unused" }) -public final class StackTraceParser { +@SuppressWarnings({ "unused", "JavadocBlankLines" }) +public class StackTraceParser { /** * The exception to use. * * @see Exception * @since 1-alpha0 + * + * -- GETTER -- + * Returns the exception to use. + * + * @see Exception + * @since 1-alpha0 */ + @Getter(AccessLevel.PROTECTED) private final @NotNull Exception exception; /**