From 129fb339f4de7cb323557c8bfd3cd8968728086b Mon Sep 17 00:00:00 2001 From: Koh Jia Xian <39460640+koh-jx@users.noreply.github.com> Date: Thu, 16 Sep 2021 16:04:59 +0800 Subject: [PATCH] Touchup javadocs --- src/main/java/duke/command/CommandSort.java | 7 ++++--- src/main/java/task/TaskDeadline.java | 2 +- src/main/java/task/TaskEvent.java | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/duke/command/CommandSort.java b/src/main/java/duke/command/CommandSort.java index 62a9da2f80..7589b0d89b 100644 --- a/src/main/java/duke/command/CommandSort.java +++ b/src/main/java/duke/command/CommandSort.java @@ -9,7 +9,7 @@ import task.TaskList; /** - * Command to sort the task list + * Command to sort the task list. */ public class CommandSort extends Command { @@ -23,14 +23,15 @@ public class CommandSort extends Command { * @param sortFilters Un-parsed list of filters. */ public CommandSort(TaskList taskList, String sortFilters) { - this.commandName = "sort /name /date"; + this.commandName = "sort"; this.description = "Sorts list based on arguments provided. Having no arguments would default to" + " sorting by /name. If there is more than 1 argument, the list will be sorted by the first." + "followed by the second, etc..."; this.arguments = new String[]{ "/name Optional argument to sort by name", "/date Optional argument to sort by date", - "/done Optional argument to sort by completion status" + "/done Optional argument to sort by completion status", + "/added Optional argument to sort by added-by date" }; this.taskList = taskList; diff --git a/src/main/java/task/TaskDeadline.java b/src/main/java/task/TaskDeadline.java index 420d7ec5ed..f534ba4b65 100644 --- a/src/main/java/task/TaskDeadline.java +++ b/src/main/java/task/TaskDeadline.java @@ -36,7 +36,7 @@ public TaskDeadline(String description, LocalDate date, String time, boolean don } /** - * Return string representation of Deadline. + * Returns string representation of Deadline. * * @return Deadline display. */ diff --git a/src/main/java/task/TaskEvent.java b/src/main/java/task/TaskEvent.java index 0577d7713b..6b6dbc6169 100644 --- a/src/main/java/task/TaskEvent.java +++ b/src/main/java/task/TaskEvent.java @@ -35,7 +35,7 @@ public TaskEvent(String description, LocalDate date, String time, boolean done, } /** - * Return string representation of Event. + * Returns string representation of Event. * * @return Event display. */