-
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]Jesulayomi Kupoluyi #50
base: master
Are you sure you want to change the base?
Conversation
Good feature to consider implementing in our project! |
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 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.*; |
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.
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{ | ||
|
||
/** |
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 comment should be placed on top of a method.
} | ||
|
||
@Override | ||
public CommandResult execute() { |
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.
import seedu.addressbook.data.person.Phone; | ||
import seedu.addressbook.data.person.ReadOnlyPerson; | ||
import seedu.addressbook.data.person.UniquePersonList; | ||
import seedu.addressbook.data.person.*; |
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.
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: |
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 indentation is not consistent with the other cases. It affects the readability of your code.
No description provided.