Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Added accessors to the list of all country names and codes #33

Merged
merged 2 commits into from
Feb 8, 2016

Conversation

nguillaumin
Copy link

It may be generally useful, in my specific case my application needs to be able to "match" a country name selected by a user with the country name detected by GeoIP. Without access to the list of countries I would have to manually maintain the list separately with the risk of it getting out of sync.

@oschwald
Copy link
Member

oschwald commented Feb 5, 2016

I don't think we should return the underlying array, as it would allow someone to modify them. Perhaps returning a new list would be better.

Also return a `List<String>` rather than an array for convenience.
@nguillaumin
Copy link
Author

Fair enough, here's a new version.

oschwald added a commit that referenced this pull request Feb 8, 2016
Added accessors to the list of all country names and codes
@oschwald oschwald merged commit 8f72fa2 into maxmind:master Feb 8, 2016
@oschwald
Copy link
Member

oschwald commented Feb 8, 2016

Thanks! I released 1.3.1 with these changes.

@nguillaumin
Copy link
Author

That's great, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants