Update 'final' class modifier
This commit is contained in:
parent
1201d5ce7d
commit
b4cf8f81b1
51 changed files with 64 additions and 55 deletions
|
@ -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%");
|
||||
|
|
|
@ -37,7 +37,7 @@ import java.util.Properties;
|
|||
*/
|
||||
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
||||
@Getter
|
||||
public class EngineConfiguration {
|
||||
public final class EngineConfiguration {
|
||||
/**
|
||||
* Instance.
|
||||
*
|
||||
|
|
|
@ -35,7 +35,7 @@ import java.util.Properties;
|
|||
*/
|
||||
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
||||
@Getter
|
||||
public class EngineInformation {
|
||||
public final class EngineInformation {
|
||||
/**
|
||||
* Instance.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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 ^^
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -29,7 +29,7 @@ import java.lang.ref.WeakReference;
|
|||
* @since 1-alpha0
|
||||
*/
|
||||
@SuppressWarnings({ "unused" })
|
||||
public class Miscellaneous {
|
||||
public final class Miscellaneous {
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
|
|
|
@ -37,7 +37,7 @@ import java.util.List;
|
|||
* @since 1-alpha0
|
||||
*/
|
||||
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
||||
public class PlaceholderEngine {
|
||||
public final class PlaceholderEngine {
|
||||
/**
|
||||
* Instance.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue