From 5154e8ebfc4ea2384a18ea1700a997f4f08c61f1 Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Sat, 12 Mar 2022 14:36:08 +0100 Subject: [PATCH] Avoid unnecessary string concatenation --- src/main/java/de/jotoho/waituntil/Main.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/jotoho/waituntil/Main.java b/src/main/java/de/jotoho/waituntil/Main.java index 550f30a..1830114 100644 --- a/src/main/java/de/jotoho/waituntil/Main.java +++ b/src/main/java/de/jotoho/waituntil/Main.java @@ -68,13 +68,13 @@ public final class Main { } else if (userData.length == 0) { switch (applicationOutputLanguage) { case GlobalConf.langGerman -> logger.log(Level.ERROR, "Es wurde keine Uhrzeit angegeben."); - default -> logger.log(Level.ERROR, "No target time" + " was " + "provided."); + default -> logger.log(Level.ERROR, "No target time was provided."); } System.exit(1); } else if (userData.length > 1) { switch (applicationOutputLanguage) { case GlobalConf.langGerman -> logger.log(Level.ERROR, "Zu viele Argumente wurden angegeben."); - default -> logger.log(Level.ERROR, "Too many arguments " + "provided."); + default -> logger.log(Level.ERROR, "Too many arguments provided."); } System.exit(1); } else { @@ -82,7 +82,7 @@ public final class Main { Sleep.waitUntilTimeStamp(target); } } catch (final ParseException e) { - System.getLogger("main").log(Level.ERROR, "Parsing " + "of arguments failed and the program cannot continue.", e); + System.getLogger("main").log(Level.ERROR, "Parsing of arguments failed and the program cannot continue.", e); System.exit(1); } }