-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[W5] [T11-1] Windrich #48
base: master
Are you sure you want to change the base?
Conversation
… person into the addressbook and view all persons in the addressbook thereafter.
Good Job! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Windrich,
Excellent job for a first attempt. Do note that you need to provide header comments for your enhancements and with non-trivial methods. Avoid leaving behind commented out code in your submission.
You have provided tests with edge cases. Good job!
return toAdd; | ||
} | ||
|
||
@Override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing header comment. All non-trivial methods should have java doc format header comments.
addressBook.addPerson(toAdd); | ||
List<ReadOnlyPerson> allPersons = addressBook.getAllPersons().immutableListView(); | ||
return new CommandResult(getMessageForPersonListShownSummary(allPersons), allPersons); | ||
// return new CommandResult(String.format(MESSAGE_SUCCESS, toAdd)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an unnecessary inline comment.
@@ -135,6 +139,32 @@ private Command prepareAdd(String args) { | |||
} | |||
} | |||
|
|||
private Command prepareAddList(String args) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing header comment. All non-trivial methods should have java doc format header comments.
Code in new class command adapted from existing command (AddCommand and ListCommand).