Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

windrichie
Copy link

Code in new class command adapted from existing command (AddCommand and ListCommand).

@JKupoluyi
Copy link

Good Job!

Copy link

@stephlewyh stephlewyh left a 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

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));

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) {

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants