From 36d1ecdaf2396af1463913cb43928bf97adaaf58 Mon Sep 17 00:00:00 2001 From: FionaQY Date: Sun, 27 Oct 2024 22:33:29 +0800 Subject: [PATCH] Fix checkstyle --- .../seedu/address/logic/commands/UndoCommand.java | 5 ++--- .../address/logic/commands/UndoCommandTest.java | 13 ++++++------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/main/java/seedu/address/logic/commands/UndoCommand.java b/src/main/java/seedu/address/logic/commands/UndoCommand.java index f42e818b249..bdc026aeffd 100644 --- a/src/main/java/seedu/address/logic/commands/UndoCommand.java +++ b/src/main/java/seedu/address/logic/commands/UndoCommand.java @@ -1,11 +1,10 @@ package seedu.address.logic.commands; +import static java.util.Objects.requireNonNull; + import seedu.address.logic.commands.exceptions.CommandException; -import seedu.address.model.AgentAssist; import seedu.address.model.Model; -import static java.util.Objects.requireNonNull; - /** * Clears the address book. */ diff --git a/src/test/java/seedu/address/logic/commands/UndoCommandTest.java b/src/test/java/seedu/address/logic/commands/UndoCommandTest.java index 3ec690014cc..86c53dba593 100644 --- a/src/test/java/seedu/address/logic/commands/UndoCommandTest.java +++ b/src/test/java/seedu/address/logic/commands/UndoCommandTest.java @@ -1,9 +1,13 @@ package seedu.address.logic.commands; +import static seedu.address.logic.commands.CommandTestUtil.assertCommandFailure; +import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess; +import static seedu.address.testutil.TypicalIndexes.INDEX_FIRST_PERSON; +import static seedu.address.testutil.TypicalPersons.getTypicalAgentAssist; + import org.junit.jupiter.api.Test; -import seedu.address.logic.Messages; + import seedu.address.logic.commands.exceptions.CommandException; -import seedu.address.model.AgentAssist; import seedu.address.model.Model; import seedu.address.model.ModelManager; import seedu.address.model.UserPrefs; @@ -11,11 +15,6 @@ import seedu.address.testutil.EditPersonDescriptorBuilder; import seedu.address.testutil.PersonBuilder; -import static seedu.address.logic.commands.CommandTestUtil.assertCommandFailure; -import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess; -import static seedu.address.testutil.TypicalIndexes.INDEX_FIRST_PERSON; -import static seedu.address.testutil.TypicalPersons.getTypicalAgentAssist; - public class UndoCommandTest { private Model model = new ModelManager(getTypicalAgentAssist(), new UserPrefs());