From 0bbca43f746687555efb7ce2a7ddbce47b8781d1 Mon Sep 17 00:00:00 2001 From: Lennoxtr Date: Fri, 31 Mar 2023 05:09:29 +0800 Subject: [PATCH 1/4] Fixed checkstyle errors --- src/main/java/seedu/address/logic/commands/ImportCommand.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/seedu/address/logic/commands/ImportCommand.java b/src/main/java/seedu/address/logic/commands/ImportCommand.java index 056c4921eb9..34744c8202d 100644 --- a/src/main/java/seedu/address/logic/commands/ImportCommand.java +++ b/src/main/java/seedu/address/logic/commands/ImportCommand.java @@ -1,9 +1,7 @@ package seedu.address.logic.commands; import static java.util.Objects.requireNonNull; - import static seedu.address.logic.parser.CliSyntax.PREFIX_MODULE; -import static seedu.address.logic.parser.CliSyntax.PREFIX_TAG; import java.nio.file.Path; import java.nio.file.Paths; From c6409bbe73817a0f5b3d3f864e231d7b697cc1a2 Mon Sep 17 00:00:00 2001 From: Lennoxtr Date: Fri, 31 Mar 2023 05:16:01 +0800 Subject: [PATCH 2/4] Fixed syntax for ExportCommand message usage --- src/main/java/seedu/address/logic/commands/ExportCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/seedu/address/logic/commands/ExportCommand.java b/src/main/java/seedu/address/logic/commands/ExportCommand.java index 73ed447bca5..441093d3a5b 100644 --- a/src/main/java/seedu/address/logic/commands/ExportCommand.java +++ b/src/main/java/seedu/address/logic/commands/ExportCommand.java @@ -16,7 +16,7 @@ public class ExportCommand extends Command { public static final String COMMAND_WORD = "export"; public static final String MESSAGE_USAGE = "\n" + COMMAND_WORD + ":\n" - + "(1) Archive all modules currently in Le Tracker to a new file.\n" + + "(1) Archive all modules currently in Le Tracker to a new file. File must be of JSON format\n" + "Parameter: " + "{file_name}\n" + "Example: " + COMMAND_WORD + " hello.json\n\n" From 12698ab26491f9d83424559d920e9994360794ed Mon Sep 17 00:00:00 2001 From: Lennoxtr Date: Fri, 31 Mar 2023 05:44:32 +0800 Subject: [PATCH 3/4] Changed warning message for file not found for Import Command --- src/main/java/seedu/address/commons/core/Messages.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/seedu/address/commons/core/Messages.java b/src/main/java/seedu/address/commons/core/Messages.java index 071c83c72bf..cfe4912cd38 100644 --- a/src/main/java/seedu/address/commons/core/Messages.java +++ b/src/main/java/seedu/address/commons/core/Messages.java @@ -55,7 +55,8 @@ public class Messages { public static final String MESSAGE_EMPTY_MODULE = "No module is provided"; public static final String MESSAGE_ARCHIVE_FILE_ALREADY_EXIST = "File already exist. If you want to " + "overwrite this file, insert /overwrite true in the command"; - public static final String MESSAGE_FILE_DOES_NOT_EXIST = "File does not exist"; + public static final String MESSAGE_FILE_DOES_NOT_EXIST = "Either the file does not exist, or it was corrupted/ of" + + " a wrong format"; public static final String MESSAGE_MODULE_ALREADY_EXIST_IN_TRACKER = "%1$s already exist in tracker. If you want " + "to overwrite data in this module, insert /overwrite true in the command"; public static final String MESSAGE_MODULE_DOES_NOT_EXIST_IN_ARCHIVE = "%1$s not found in this file"; From 3f4ac10f81e2a8045c9549b6feeceb8db8aa3b5c Mon Sep 17 00:00:00 2001 From: hingen <31367001+hingen@users.noreply.github.com> Date: Thu, 30 Mar 2023 23:58:09 +0000 Subject: [PATCH 4/4] Fix checkstyle violation --- src/main/java/seedu/address/commons/core/Messages.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/seedu/address/commons/core/Messages.java b/src/main/java/seedu/address/commons/core/Messages.java index cfe4912cd38..b7b000a71be 100644 --- a/src/main/java/seedu/address/commons/core/Messages.java +++ b/src/main/java/seedu/address/commons/core/Messages.java @@ -55,8 +55,8 @@ public class Messages { public static final String MESSAGE_EMPTY_MODULE = "No module is provided"; public static final String MESSAGE_ARCHIVE_FILE_ALREADY_EXIST = "File already exist. If you want to " + "overwrite this file, insert /overwrite true in the command"; - public static final String MESSAGE_FILE_DOES_NOT_EXIST = "Either the file does not exist, or it was corrupted/ of" + - " a wrong format"; + public static final String MESSAGE_FILE_DOES_NOT_EXIST = "Either the file does not exist, or it was corrupted/ of" + + " a wrong format"; public static final String MESSAGE_MODULE_ALREADY_EXIST_IN_TRACKER = "%1$s already exist in tracker. If you want " + "to overwrite data in this module, insert /overwrite true in the command"; public static final String MESSAGE_MODULE_DOES_NOT_EXIST_IN_ARCHIVE = "%1$s not found in this file";