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

[W7][T11-2] Teo Xuan Wei #46

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

Conversation

shawn-t
Copy link

@shawn-t shawn-t commented Mar 4, 2019

New Command Length returns length of AB when queried by user.

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 Xuan Wei,

Good job with documentation update and code enhancement! See code inline comments for details for some specifics that you could improve on.

Also, you could supplement a Junit test of your enhancement.

You may close this PR after reviewing the comment.

@@ -12,7 +12,7 @@
* Main entry point to the application.
*/
public class Main extends Application implements Stoppable{

// test commit

Choose a reason for hiding this comment

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

Unnecessary comments should be removed.

+ "Example: " + COMMAND_WORD;
public static final String MESSAGE_SUCCESS = "Length of the address book is: ";

@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.

@@ -65,6 +65,10 @@ public void clear() {
allPersons.clear();
}

public int size() {

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.

@@ -113,6 +113,14 @@ public void clear() {
internalList.clear();
}

/**
* New method to get size of address book :D

Choose a reason for hiding this comment

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

Do note that your header comment should begin with a verb - e.g. Gets size of address book. This is the standard java coding convention that we are following.

yingrong1996 added a commit to yingrong1996/addressbook-level3 that referenced this pull request Mar 19, 2019
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.

3 participants