diff --git a/engine/src/main/java/org/terasology/engine/core/LoggingContext.java b/engine/src/main/java/org/terasology/engine/core/LoggingContext.java index c0c102e7d86..7ae31e0e291 100644 --- a/engine/src/main/java/org/terasology/engine/core/LoggingContext.java +++ b/engine/src/main/java/org/terasology/engine/core/LoggingContext.java @@ -25,6 +25,7 @@ /** * Configures the underlying logback logging framework. */ +@SuppressWarnings("PMD.SystemPrintln") public final class LoggingContext { /** diff --git a/engine/src/main/java/org/terasology/engine/core/PathManager.java b/engine/src/main/java/org/terasology/engine/core/PathManager.java index 69650bc6082..eaaa8b428ad 100644 --- a/engine/src/main/java/org/terasology/engine/core/PathManager.java +++ b/engine/src/main/java/org/terasology/engine/core/PathManager.java @@ -99,11 +99,11 @@ private static Path findInstallPath() { } } - System.err.printf( - "Native library installation directory not found. %n" + - "Things will almost certainly crash as a result, %n" + - "unless something else installed everything to java.library.path. %n" + - "Searched: %s%n", installationSearchPaths + LOGGER.error( + "Native library installation directory not found. /n" + + "Things will almost certainly crash as a result, /n" + + "unless something else installed everything to java.library.path. /n" + + "Searched: {}/n", installationSearchPaths ); return currentDirectory; } diff --git a/facades/PC/src/main/java/org/terasology/engine/Terasology.java b/facades/PC/src/main/java/org/terasology/engine/Terasology.java index dca098f58c0..43ca9258e33 100644 --- a/facades/PC/src/main/java/org/terasology/engine/Terasology.java +++ b/facades/PC/src/main/java/org/terasology/engine/Terasology.java @@ -318,6 +318,7 @@ private void populateSubsystems(TerasologyEngineBuilder builder) { builder.add(new HibernationSubsystem()); } + @SuppressWarnings("PMD.SystemPrintln") private void reportException(Throwable throwable) { Path logPath = LoggingContext.getLoggingPath();