From 803804665d6a8619dca35b0fd5451e937d1c285d Mon Sep 17 00:00:00 2001 From: yyyaohhh Date: Tue, 17 Oct 2023 14:18:14 +0800 Subject: [PATCH 1/3] Updated --- src/main/java/seedu/address/logic/commands/DeleteCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/seedu/address/logic/commands/DeleteCommand.java b/src/main/java/seedu/address/logic/commands/DeleteCommand.java index 5db6ccca83f..d7d7c871b2d 100644 --- a/src/main/java/seedu/address/logic/commands/DeleteCommand.java +++ b/src/main/java/seedu/address/logic/commands/DeleteCommand.java @@ -24,7 +24,7 @@ public class DeleteCommand extends Command { + "Example: " + COMMAND_WORD + " " + PREFIX_CODE + "CS2103T "; public static final String MESSAGE_DELETE_MODULE_SUCCESS = "Deleted Module: %1$s"; - public static final String MESSAGE_NOT_FOUND_MODULE = "This module is not found and has not been added."; + public static final String MESSAGE_NOT_FOUND_MODULE = "This module is not found and has not been deleted."; private final ModuleCode toDelete; From 3400a2685382e88727099d67dab359a4dc229ce2 Mon Sep 17 00:00:00 2001 From: yyyaohhh Date: Tue, 17 Oct 2023 14:20:50 +0800 Subject: [PATCH 2/3] Update according to feedback from PR --- src/main/java/seedu/address/logic/commands/DeleteCommand.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/seedu/address/logic/commands/DeleteCommand.java b/src/main/java/seedu/address/logic/commands/DeleteCommand.java index d7d7c871b2d..c25c64ad624 100644 --- a/src/main/java/seedu/address/logic/commands/DeleteCommand.java +++ b/src/main/java/seedu/address/logic/commands/DeleteCommand.java @@ -10,7 +10,6 @@ import seedu.address.model.module.Module; import seedu.address.model.module.ModuleCode; - /** * Deletes a person identified using it's displayed index from the address book. */ From 40aa6bc76b9dd349713bb8bd15200817a83d0ef5 Mon Sep 17 00:00:00 2001 From: yyyaohhh Date: Tue, 17 Oct 2023 15:37:58 +0800 Subject: [PATCH 3/3] Bug Fix for Delete --- .../java/seedu/address/logic/parser/DeleteCommandParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/seedu/address/logic/parser/DeleteCommandParser.java b/src/main/java/seedu/address/logic/parser/DeleteCommandParser.java index 3a80819cc33..a2e5ce75402 100644 --- a/src/main/java/seedu/address/logic/parser/DeleteCommandParser.java +++ b/src/main/java/seedu/address/logic/parser/DeleteCommandParser.java @@ -18,7 +18,7 @@ public class DeleteCommandParser implements Parser { */ public DeleteCommand parse(String args) throws ParseException { try { - ModuleCode code = ParserUtil.parseCode(args); + ModuleCode code = ParserUtil.parseModuleCode(args); return new DeleteCommand(code); } catch (ParseException pe) {