diff --git a/src/main/java/duke/Parser.java b/src/main/java/duke/Parser.java index 4c0f3cbbf..0d9a09754 100644 --- a/src/main/java/duke/Parser.java +++ b/src/main/java/duke/Parser.java @@ -43,7 +43,8 @@ public static void performTodo(TaskList taskManager, String userInput) { * @param stringSeparator such as '/at' or '/by' to identify different type of tasks. * @param taskType holds the task child classes, for instance, deadline. */ - public static void performTaskWithTimeConstraints(TaskList taskManager, String userInput, String stringSeparator, String taskType) { + public static void performTaskWithTimeConstraints(TaskList taskManager, String userInput, + String stringSeparator, String taskType) { try { Task newTask = taskManager.addTaskWithTime(userInput, stringSeparator); Storage.saveDataAddToListOperation(taskManager, newTask); diff --git a/src/main/java/duke/Storage.java b/src/main/java/duke/Storage.java index a30ced33d..afabe88fc 100644 --- a/src/main/java/duke/Storage.java +++ b/src/main/java/duke/Storage.java @@ -191,7 +191,8 @@ public static void appendDukeDataFile(String newTask) throws IOException, ArrayI * @throws IOException If file operation failed. * @throws ArrayIndexOutOfBoundsException For any operations which involves index checking. */ - public static void modifyMarkStatusDataFile(int taskNumber, boolean isMarked) throws IOException, ArrayIndexOutOfBoundsException { + public static void modifyMarkStatusDataFile(int taskNumber, boolean isMarked) throws + IOException, ArrayIndexOutOfBoundsException { List fileContentLines = Files.readAllLines(FILE_PATH); int lineNumber = 1; String replacedFileContents = ""; diff --git a/src/main/java/duke/task/TaskList.java b/src/main/java/duke/task/TaskList.java index 193afc4bd..967e627f3 100644 --- a/src/main/java/duke/task/TaskList.java +++ b/src/main/java/duke/task/TaskList.java @@ -51,7 +51,8 @@ public static Task addTask(String userInput) throws DukeEmptyDescriptionExceptio * @throws DukeMissingTimeSeparator If time separators (e.g. '/at') for each task type is missing. * @throws DateTimeParseException If time could not be parsed properly. */ - public static Task addTaskWithTime(String userInput, String stringSeparator) throws DukeEmptyDescriptionException, DukeMissingTimeSeparator, DateTimeParseException { + public static Task addTaskWithTime(String userInput, String stringSeparator) throws + DukeEmptyDescriptionException, DukeMissingTimeSeparator, DateTimeParseException { String extractedStringsWithoutCommandType = parser.validateAndExtractTaskDescription(userInput); if ((extractedStringsWithoutCommandType.split(stringSeparator).length) <= 1) { throw new DukeMissingTimeSeparator(); @@ -83,7 +84,8 @@ public static Task addTaskWithTime(String userInput, String stringSeparator) thr * @throws NumberFormatException If task number could not be parsed into an integer. * @throws DukeTaskOutOfRangeException If the task number supplied is less or more than the current task list. */ - public static int markTask(boolean isMarked, String userInput) throws DukeEmptyDescriptionException, NumberFormatException, DukeTaskOutOfRangeException { + public static int markTask(boolean isMarked, String userInput) throws + DukeEmptyDescriptionException, NumberFormatException, DukeTaskOutOfRangeException { if ((userInput.split(" ")).length <= 1) { throw new DukeEmptyDescriptionException(); }