From acd01b42ebb48aa5175b473cfb9655877009f40f Mon Sep 17 00:00:00 2001 From: romanschenk37 <84532681+romanschenk37@users.noreply.github.com> Date: Fri, 25 Mar 2022 22:42:51 +0100 Subject: [PATCH] code cleanup --- .../java/ch/zhaw/pm2/racetrack/strategy/MoveListStrategy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ch/zhaw/pm2/racetrack/strategy/MoveListStrategy.java b/src/main/java/ch/zhaw/pm2/racetrack/strategy/MoveListStrategy.java index f65a7b8..35682eb 100644 --- a/src/main/java/ch/zhaw/pm2/racetrack/strategy/MoveListStrategy.java +++ b/src/main/java/ch/zhaw/pm2/racetrack/strategy/MoveListStrategy.java @@ -46,8 +46,8 @@ public class MoveListStrategy implements MoveStrategy { break; } } - if (!(validLine || line == "")) { - throw new InvalidFileFormatException("The File contains invalid data! Please "); + if (!(validLine || line.equals(""))) { + throw new InvalidFileFormatException("The File contains invalid data!"); } } }