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

[T3A3][W13-A3]Marianne Quek #1082

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

[T3A3][W13-A3]Marianne Quek #1082

wants to merge 1 commit into from

Conversation

marianne121
Copy link

No description provided.

Copy link

@K1ang K1ang left a comment

Choose a reason for hiding this comment

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

@marianne121 Some comments added. Please close the PR after reading comments.

@@ -38,22 +53,22 @@ public static boolean isValidAddress(String test) {

@Override
public String toString() {
return value;
return block.getBlock() + ", " + street.getStreet() + ", " + unit.getUnit() + ", " + postalCode.getPostalCode();
}
Copy link

Choose a reason for hiding this comment

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

Take note of magic strings used.

@@ -0,0 +1,13 @@
package seedu.addressbook.data.person;

public class Block {
Copy link

Choose a reason for hiding this comment

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

Remember to include header comments for these classes to tell developments how to use these classes.

public String getFeedbackToUser() {
return feedbackToUser;
}

Copy link

Choose a reason for hiding this comment

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

Is this for T3A2? Try not to include multiple different activities in a PR unless stated.

list

# should not allow adding duplicate persons
add Esther Potato p/555555 e/[email protected] pa/555, epsilon street t/tubers t/starchy
add Esther Potato p/555555 e/[email protected] pa/123, 555 epsilon street, #123, 123456 t/tubers t/starchy

Copy link

Choose a reason for hiding this comment

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

Good to see the tests being updated.


private final UniqueTagList tags;
private static int nextSeqNo = 0;
Copy link

Choose a reason for hiding this comment

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

Is this T4A2? This is abit confusing.

Copy link

Choose a reason for hiding this comment

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

Try to cherry pick and submit if you have multiple activities done. Else you can do them in separate branches to avoid sending in multiple activities in a single PR.

|| (other instanceof Address // instanceof handles nulls
&& this.value.equals(((Address) other).value)); // state check
|| (other instanceof Address // instance of handles nulls
&& this.toString().equals(((Address) other).toString())); // state check
}
Copy link

Choose a reason for hiding this comment

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

How about using each smaller classes for their specific comparisons?

@K1ang K1ang added the Reviewed label Mar 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants