Update 'final' class modifier

This commit is contained in:
JeremyStar™ 2024-06-09 19:57:12 +02:00
parent 1201d5ce7d
commit b4cf8f81b1
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
51 changed files with 64 additions and 55 deletions

View file

@ -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<String, String> crashContentIssuer = new LinkedHashMap<>();
crashContentIssuer.put("Code part", "%issuer_code_part%");

View file

@ -37,7 +37,7 @@ import java.util.Properties;
*/
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
@Getter
public class EngineConfiguration {
public final class EngineConfiguration {
/**
* Instance.
*

View file

@ -35,7 +35,7 @@ import java.util.Properties;
*/
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
@Getter
public class EngineInformation {
public final class EngineInformation {
/**
* Instance.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -41,7 +41,7 @@ import java.util.*;
* @since 1-alpha0
*/
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
public class CrashHandler {
public final class CrashHandler {
/**
* Hopefully {@code false} :)<br/>
* Note: Switching this to true might cause issues. Just don't do it ^^

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -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.
*

View file

@ -29,7 +29,7 @@ import java.lang.ref.WeakReference;
* @since 1-alpha0
*/
@SuppressWarnings({ "unused" })
public class Miscellaneous {
public final class Miscellaneous {
/**
* Constructor.
*

View file

@ -37,7 +37,7 @@ import java.util.List;
* @since 1-alpha0
*/
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
public class PlaceholderEngine {
public final class PlaceholderEngine {
/**
* Instance.
*

View file

@ -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.
*

View file

@ -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;
/**