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]Jesulayomi Kupoluyi #50

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

Conversation

JKupoluyi
Copy link

No description provided.

@windrichie
Copy link

Good feature to consider implementing in our project!

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 Layomi,

Overall you've done well in the following:
(1) Updated user documentation
(2) Provided legitimate test cases
(3) Included exceptions to catch duplicate persons

Good job!

However, you could ensure that your import statements and header comments adhere to the NUS Java coding standards.

package seedu.addressbook.commands;

import seedu.addressbook.data.exception.IllegalValueException;
import seedu.addressbook.data.person.*;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imported classes should always be listed explicitly. E.g. java.util.List and not java.util.*, which does not follow NUS Java coding standards.


public class AddAndList extends Command{

/**

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment should be placed on top of a method.

}

@Override
public CommandResult execute() {

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.

import seedu.addressbook.data.person.Phone;
import seedu.addressbook.data.person.ReadOnlyPerson;
import seedu.addressbook.data.person.UniquePersonList;
import seedu.addressbook.data.person.*;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imported classes should always be listed explicitly. E.g. java.util.List and not java.util.*, which does not follow NUS Java coding standards.

@@ -76,6 +62,9 @@ public Command parseCommand(String userInput) {
case AddCommand.COMMAND_WORD:
return prepareAdd(arguments);

case AddAndList.COMMAND_WORD:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This indentation is not consistent with the other cases. It affects the readability of your code.

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