From de73b6c68ac3f043adf5209972a281b1c5c5409e Mon Sep 17 00:00:00 2001 From: Nereus Ng Wei Bin Date: Mon, 18 Sep 2023 01:46:33 +0800 Subject: [PATCH] Fix checkstyle error --- src/main/java/corgi/ui/TextRenderer.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/corgi/ui/TextRenderer.java b/src/main/java/corgi/ui/TextRenderer.java index 361f87c355..f1b33ef9bb 100644 --- a/src/main/java/corgi/ui/TextRenderer.java +++ b/src/main/java/corgi/ui/TextRenderer.java @@ -108,7 +108,7 @@ public String showExitMsg() { * @param date The target date. */ public String showNoTaskOnDate(String date) { - return returnMessage("Ugh, seriously? No tasks or events on " + date + return returnMessage("Ugh, seriously? No tasks or events on " + date + "? What a waste of time."); } @@ -132,7 +132,7 @@ public String showTasksOnDate(String date, String tasksOnDate) { * @param keyword The target keyword. */ public String showKeywordNotFound(String keyword) { - return returnMessage("No task with that annoying keyword \"" + keyword + return returnMessage("No task with that annoying keyword \"" + keyword + "\" found. It's like searching for a bone in an empty bowl."); } @@ -203,6 +203,12 @@ public String showTaskList(String taskList) { return taskList; } + /** + * Generates a message indicating a successful undo of the last command. + * + * @param commandDesc The description of the undone command. + * @return A string message indicating the successful undo. + */ public String showUndoSucceed(String commandDesc) { return returnMessage("Argh, fine!", "I undid it: " + commandDesc,