-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Rename NonGeographicalRegion to NonGeographicalEntity. #3627
base: master
Are you sure you want to change the base?
Rename NonGeographicalRegion to NonGeographicalEntity. #3627
Conversation
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.
Can you also update https://github.com/google/libphonenumber/blob/master/pending_code_changes.txt with the explanation of this change? This will be included in the release notes then
java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java
Outdated
Show resolved
Hide resolved
acb49f2
to
e49a7ac
Compare
f916917
to
ae42ce6
Compare
This is to be consistent with the naming of non-geographical entities, since region and non-geographical can be contradictory.
Added ( - Renamed NonGeographicalRegion to NonGeographicalEntity. - Created a new interface called NonGeographicalEntityMetadataSourceV2) into the file.
Changed @deprecated use the following... to just @deprecated Use... to make every @deprecated comment the same.
I renamed the NonGeographicalRegion variables and methodes to NonGeographicalEntity because we want to keep the naming the same so its easier to read. This CL is for the C++ version.
ae42ce6
to
32e0765
Compare
const i18n::phonenumbers::PhoneMetadata* GetMetadataForNonGeographicalRegion( | ||
int country_calling_code) const; |
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.
You can remove this since it is a private function.
const PhoneMetadata* GetMetadataForNonGeographicalRegion( | ||
int country_code) const { | ||
return phone_util_.GetMetadataForNonGeographicalRegion(country_code); | ||
return phone_util_.GetMetadataForNonGeographicalEntity(country_code); | ||
} |
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.
You can also remove this because you already renamed the calls to this function.
This is to be consistent with the naming of non-geographical entities, since region and non-geographical can be contradictory.
Context: b/206752240