From 48675b0ca5dc84bf88f0bfdf183e022347d5f200 Mon Sep 17 00:00:00 2001 From: Andrin Fassbind Date: Fri, 25 Mar 2022 20:17:30 +0100 Subject: [PATCH] codecleanup MoveListStrategy --- .../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 fdf14dd..2953ef7 100644 --- a/src/main/java/ch/zhaw/pm2/racetrack/strategy/MoveListStrategy.java +++ b/src/main/java/ch/zhaw/pm2/racetrack/strategy/MoveListStrategy.java @@ -20,10 +20,10 @@ public class MoveListStrategy implements MoveStrategy { private final List moveList; private int pointer; - public MoveListStrategy(String path) throws FileNotFoundException{ + public MoveListStrategy(File moveListFile) throws FileNotFoundException{ moveList = new ArrayList<>(); pointer = -1; - readFile(new File(path)); + readFile(moveListFile); } /**