From c67d40937ed382bf870a3beb220096823e9417ff Mon Sep 17 00:00:00 2001 From: marquestye Date: Mon, 13 Nov 2023 15:06:07 +0800 Subject: [PATCH] Fix checkstyle --- src/main/java/seedu/address/logic/commands/EditCommand.java | 2 +- .../java/seedu/address/model/moduleplan/ModulePlanTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/seedu/address/logic/commands/EditCommand.java b/src/main/java/seedu/address/logic/commands/EditCommand.java index a1b44c4f3f7..df868149704 100644 --- a/src/main/java/seedu/address/logic/commands/EditCommand.java +++ b/src/main/java/seedu/address/logic/commands/EditCommand.java @@ -94,7 +94,7 @@ public CommandResult execute(Model model) throws CommandException { // Edit module Module editedModule = createEditedModule(moduleToEdit, editModuleDescriptor); - assert editedModule.isSameModule(moduleToEdit) : MESSAGE_MODULE_CODE_CHANGE; + assert editedModule.isSameModule(moduleToEdit) : MESSAGE_MODULE_CODE_CHANGE; // Update module plan and return success message model.setModule(moduleToEdit, editedModule); diff --git a/src/test/java/seedu/address/model/moduleplan/ModulePlanTest.java b/src/test/java/seedu/address/model/moduleplan/ModulePlanTest.java index 267a5200aa1..75164f1d6bc 100644 --- a/src/test/java/seedu/address/model/moduleplan/ModulePlanTest.java +++ b/src/test/java/seedu/address/model/moduleplan/ModulePlanTest.java @@ -110,7 +110,7 @@ public void equals_differentObj_returnFalse() { @Test public void hashCodeMethod() { modulePlan.resetData(getTypicalModulePlan()); - + // same object assertTrue(modulePlan.hashCode() == modulePlan.hashCode());