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

[T2A1][T01-T4]Lui Sheng Jie #15

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

[T2A1][T01-T4]Lui Sheng Jie #15

wants to merge 4 commits into from

Conversation

luishengjie
Copy link

Ready for review

@@ -54,7 +54,7 @@
/**
* A platform independent line separator.
*/
private static final String LS = System.lineSeparator() + LINE_PREFIX;
private static final String LINE_SEPARATOR = System.lineSeparator() + LINE_PREFIX;

Choose a reason for hiding this comment

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

Good to see you change the variable name.

* */
private static final int INVALID_PROGRAM_ARGS = 2;
private static final int GIVEN_FILE_STORAGE_PROGRAM_ARGS = 1;
private static final int DEFAULT_FILE_STORAGE_PROGRAM_ARGS = 0;

Choose a reason for hiding this comment

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

Awesome, you remove the magic number and use good name to replace those constants .

return removePrefixSign(
encoded.substring(indexOfPhonePrefix, indexOfEmailPrefix).trim(),
PERSON_DATA_PREFIX_PHONE);
return removePrefixPhone(encoded.substring(indexOfPhonePrefix, indexOfEmailPrefix).trim());

Choose a reason for hiding this comment

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

The main goal of this activity is to change the removePrefixSign method. Please check the instruction again.

@jeffryhartanto
Copy link

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

1 similar comment
@jeffryhartanto
Copy link

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

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