From 7d59abeb6496bd444ed0db4b0d55b3e0d0790a8b Mon Sep 17 00:00:00 2001 From: lm-44 Date: Wed, 16 Oct 2024 13:31:06 +0800 Subject: [PATCH 1/2] Fix help message for view_student command --- .../seedu/address/logic/parser/ViewStudentCommandParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/seedu/address/logic/parser/ViewStudentCommandParser.java b/src/main/java/seedu/address/logic/parser/ViewStudentCommandParser.java index eff6bc4a0a3..26c3bf8832c 100644 --- a/src/main/java/seedu/address/logic/parser/ViewStudentCommandParser.java +++ b/src/main/java/seedu/address/logic/parser/ViewStudentCommandParser.java @@ -23,7 +23,7 @@ public ViewStudentCommand parse(String args) throws ParseException { return new ViewStudentCommand(index); } catch (ParseException pe) { throw new ParseException( - String.format(MESSAGE_INVALID_COMMAND_FORMAT, DeleteCommand.MESSAGE_USAGE), pe); + String.format(MESSAGE_INVALID_COMMAND_FORMAT, ViewStudentCommand.MESSAGE_USAGE), pe); } } From 4179a7d581477cb096997d44619222040575aeaf Mon Sep 17 00:00:00 2001 From: lm-44 Date: Wed, 16 Oct 2024 13:32:27 +0800 Subject: [PATCH 2/2] Remove unused imports --- .../seedu/address/logic/parser/ViewStudentCommandParser.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/seedu/address/logic/parser/ViewStudentCommandParser.java b/src/main/java/seedu/address/logic/parser/ViewStudentCommandParser.java index 26c3bf8832c..78b1f45467e 100644 --- a/src/main/java/seedu/address/logic/parser/ViewStudentCommandParser.java +++ b/src/main/java/seedu/address/logic/parser/ViewStudentCommandParser.java @@ -3,7 +3,6 @@ import static seedu.address.logic.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import seedu.address.commons.core.index.Index; -import seedu.address.logic.commands.DeleteCommand; import seedu.address.logic.commands.ViewStudentCommand; import seedu.address.logic.parser.exceptions.ParseException;