Skip to content

Commit

Permalink
Fix codebase based off code quality feedback
Browse files Browse the repository at this point in the history
- Task.java: Naming of boolean variable
- Duke.java: Fix header of javadocs
- Ui.java: Fix header of javadocs
  • Loading branch information
domlimm committed Feb 12, 2022
1 parent 29d10e8 commit b9467e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/main/java/duke/main/Duke.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ public Duke() {
}

/**
* You should have your own function to generate a response to user input.
* Replace this stub with your completed method.
* Generates a response to user input.
*
* @param input input is the user input keyed into the input field.
* @return Returns the response from the system back to the user.
*/
public String getResponse(String input) {
assert input != null : "Duke[getResponse] input cannot be null.";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/duke/ui/Ui.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void output(String output) {
}

/**
* Display a message when there is an issue loading from the text file that holds tasks.
* Displays a message when there is an issue loading from the text file that holds tasks.
*/
public void showLoadingError() {
output(Constants.STORAGE_READ_MSG);
Expand Down

0 comments on commit b9467e3

Please sign in to comment.