Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
QX-CHEN committed Oct 2, 2020
1 parent 718d2ec commit 50ca269
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/Duke.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Duke class starts, runs and stops the main program.
*
* @author Chen Qixing
* @version 0.1
* @version 0.2
* @since 16 AUG 2020
*/
public class Duke {
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/common/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/
public class Utils {


/**
* Convert a date from String to LocalDate.
*
Expand All @@ -31,7 +30,7 @@ public static LocalDate dateStringToDate(String dateString) {
return null;
}
}

/**
* Convert a time from String to LocalDate.
*
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/data/TaskList.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public Task get(int index) {
* Remove task from TaskList using index.
*
* @return task that is removed from the TaskList.
* @throws InvalidTaskNumberException if the task number is out of range.
*/
public Task deleteTask(int taskNum) throws InvalidTaskNumberException {
if (taskNum <= 0 || taskNum > tasks.size()) {
Expand All @@ -55,6 +56,8 @@ public Task deleteTask(int taskNum) throws InvalidTaskNumberException {
* Mark task as done using index.
*
* @return task that is marked as done.
* @throws InvalidTaskNumberException if the task number is out of range.
* @throws TaskDoneException if the task is already done.
*/
public Task markAsDone(int taskNum) throws InvalidTaskNumberException, TaskDoneException {
if (taskNum <= 0 || taskNum > tasks.size()) {
Expand Down
10 changes: 9 additions & 1 deletion src/main/java/parser/Parser.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
package parser;

import commands.*;
import commands.ByeCommand;
import commands.Command;
import commands.DeadlineCommand;
import commands.DeleteCommand;
import commands.DoneCommand;
import commands.EventCommand;
import commands.FindCommand;
import commands.ListCommand;
import commands.TodoCommand;
import exceptions.InvalidCommandException;
import exceptions.UnknownCommandException;

Expand Down

0 comments on commit 50ca269

Please sign in to comment.