mirror of
https://github.com/ilri/cgspace-java-helpers.git
synced 2024-12-22 21:22:22 +01:00
Use BufferedReader for iso-codes JSON
This commit is contained in:
parent
bb9e53b220
commit
af708933b2
@ -72,7 +72,7 @@ public class CountryCodeTagger extends AbstractCurationTask
|
||||
} else {
|
||||
Gson gson = new Gson();
|
||||
|
||||
BufferedReader reader = new BufferedReader(new FileReader(isocodesJsonPath));
|
||||
BufferedReader reader = new BufferedReader(new InputStreamReader(this.getClass().getResourceAsStream(isocodesJsonPath)));
|
||||
CountriesVocabulary isocodesCountriesJson = gson.fromJson(reader, CountriesVocabulary.class);
|
||||
reader.close();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user