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.7][T12-3]Park Sang Jun #422

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

[W5.7][T12-3]Park Sang Jun #422

wants to merge 3 commits into from

Conversation

park-sang-jun
Copy link

No description provided.

@hotarumin
Copy link

Looks good, but I wonder what caused the travis CI build to fail

@CrimsonAng
Copy link

Looks nice, just a question.

Did your IDE auto include [import seedu.addressbook.commands.*] instead of using whatever dedicated imports? A question that I wonders too as my IDE would sometimes remove dedicated imports and automatically include the parent import.

@thaddeuslzy
Copy link

Using .* to import all the commands is a good method to keep your code compact and easy to read. However, there is a possibility that the use of .* might result in unforeseen errors in the execution of the program

Copy link

@parvathy-sudhir-pillai parvathy-sudhir-pillai left a comment

Choose a reason for hiding this comment

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

Good effort on this PR. In particular, good job on,

  • updating user doc
  • updating I/O and jUnit tests

Suggestions to improve further:

  • update dev doc
  • limit the PR to one enhancement and avoid including changes not related to that enhancement or unmerged code from other PRs
  • pay closer attention to the coding standard

Please close the PR after viewing comments.

@@ -176,6 +176,11 @@ Example:

* `java seedu.addressbook.Main mydata.txt`

== Counting the number of persons in the address book: `count`

Counts the number of persons in the address book. +

Choose a reason for hiding this comment

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

Good job updating user doc


public class CountCommand extends Command {

public static final String COMMAND_WORD = "count";

Choose a reason for hiding this comment

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

Try avoiding public class member variables

import seedu.addressbook.commands.ListCommand;
import seedu.addressbook.commands.ViewAllCommand;
import seedu.addressbook.commands.ViewCommand;
import seedu.addressbook.commands.*;

Choose a reason for hiding this comment

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

Coding standard does not permit wildcard imports

@@ -43,4 +43,18 @@ private void assertAreUnique(Object... objects) {
private void assertNotUnique(Object... objects) {
assertFalse(Utils.elementsAreUnique(Arrays.asList(objects)));
}

@Test

Choose a reason for hiding this comment

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

Coding standard requires to include descriptive header comments for public methods

@@ -43,4 +43,18 @@ private void assertAreUnique(Object... objects) {
private void assertNotUnique(Object... objects) {
assertFalse(Utils.elementsAreUnique(Arrays.asList(objects)));
}

@Test
public void isAnyNull() throws Exception {

Choose a reason for hiding this comment

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

This commit shouldn't be part of this PR. In general, a PR should not contain unmerged code from other PRs. Try to limit each PR to one enhancement, which means the PR should be based on a branch that starts off from the master branch that is in sync with the upstream master branch

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.

6 participants