Use BufferedReader for iso-codes JSON

This commit is contained in:
Alan Orth 2020-07-31 22:25:09 +03:00
parent bb9e53b220
commit af708933b2
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -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();