Skip to content

[W5][T11-1]Jesulayomi Kupoluyi - #50

Open
JKupoluyi wants to merge 3 commits into
nusCS2113-AY1819S2:masterfrom
JKupoluyi:W2.2b
Open

[W5][T11-1]Jesulayomi Kupoluyi#50
JKupoluyi wants to merge 3 commits into
nusCS2113-AY1819S2:masterfrom
JKupoluyi:W2.2b

Conversation

@JKupoluyi

Copy link
Copy Markdown

No description provided.

@windrichie

Copy link
Copy Markdown

Good feature to consider implementing in our project!

@stephlewyh stephlewyh left a comment

Copy link
Copy Markdown

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.*;

Copy link
Copy Markdown

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{

/**

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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.*;

Copy link
Copy Markdown

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.

case AddCommand.COMMAND_WORD:
return prepareAdd(arguments);

case AddAndList.COMMAND_WORD:

Copy link
Copy Markdown

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