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 7ca4f8de..1dd23d61 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/EngineConfiguration.java +++ b/base/src/main/java/de/staropensource/sosengine/base/EngineConfiguration.java @@ -366,48 +366,22 @@ public final class EngineConfiguration implements SubsystemConfiguration { @Nullable public Object getSetting(@NotNull String setting) { switch (setting) { - case "debug" -> { - return debug; - } - case "debugEvents" -> { - return debugEvents; - } - case "debugShortcodeConverter" -> { - return debugShortcodeConverter; - } + case "debug" -> { return debug; } + case "debugEvents" -> { return debugEvents; } + case "debugShortcodeConverter" -> { return debugShortcodeConverter; } - case "errorShortcodeConverter" -> { - return errorShortcodeConverter; - } + case "errorShortcodeConverter" -> { return errorShortcodeConverter; } - case "loggerLevel" -> { - return loggerLevel; - } - case "loggerTemplate" -> { - return loggerTemplate; - } - case "loggerImmediateShutdown" -> { - return loggerImmediateShutdown; - } - case "loggerForceStandardOutput" -> { - return loggerForceStandardOutput; - } - case "loggerPollingSpeed" -> { - return loggerPollingSpeed; - } + case "loggerLevel" -> { return loggerLevel; } + case "loggerTemplate" -> { return loggerTemplate; } + case "loggerImmediateShutdown" -> { return loggerImmediateShutdown; } + case "loggerForceStandardOutput" -> { return loggerForceStandardOutput; } + case "loggerPollingSpeed" -> { return loggerPollingSpeed; } - case "optimizeLogging" -> { - return optimizeLogging; - } - case "optimizeEvents" -> { - return optimizeEvents; - } - case "optimizeSubsystemInitialization" -> { - return optimizeSubsystemInitialization; - } - default -> { - return null; - } + case "optimizeLogging" -> { return optimizeLogging; } + case "optimizeEvents" -> { return optimizeEvents; } + case "optimizeSubsystemInitialization" -> { return optimizeSubsystemInitialization; } + default -> { return null; } } } diff --git a/graphics/src/main/java/de/staropensource/sosengine/graphics/GraphicsSubsystemConfiguration.java b/graphics/src/main/java/de/staropensource/sosengine/graphics/GraphicsSubsystemConfiguration.java index f1dc30b6..13c7ddd8 100644 --- a/graphics/src/main/java/de/staropensource/sosengine/graphics/GraphicsSubsystemConfiguration.java +++ b/graphics/src/main/java/de/staropensource/sosengine/graphics/GraphicsSubsystemConfiguration.java @@ -190,18 +190,12 @@ public final class GraphicsSubsystemConfiguration implements SubsystemConfigurat @Nullable public Object getSetting(@NotNull String setting) { switch (setting) { - case "debug" -> { - return debug; - } - case "errorGraphicsError" -> { - return errorGraphicsError; - } - case "disallowTearing" -> { - return disallowTearing; - } - default -> { - return null; - } + case "debug" -> { return debug; } + + case "errorGraphicsError" -> { return errorGraphicsError; } + + case "disallowTearing" -> { return disallowTearing; } + default -> { return null; } } } }