-
Notifications
You must be signed in to change notification settings - Fork 10
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
base: master
Are you sure you want to change the base?
Conversation
…g(), implement removePrefixPhone & removePrefixEmail respectively
@@ -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; |
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.
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; |
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.
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()); |
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.
The main goal of this activity is to change the removePrefixSign
method. Please check the instruction again.
@luishengjie Some comments added. Please close the PR after reading comments. |
1 similar comment
@luishengjie Some comments added. Please close the PR after reading comments. |
Ready for review