Close BufferedReader after we use it

This commit is contained in:
Alan Orth 2020-07-31 22:26:50 +03:00
parent 9089ffb66f
commit 94ceabb732
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ public class CountryCodeTagger extends AbstractCurationTask
reader = new BufferedReader(new InputStreamReader(this.getClass().getResourceAsStream(cgspaceCountriesJsonPath)));
CountriesVocabulary cgspaceCountriesJson = gson.fromJson(reader, CountriesVocabulary.class);
reader.close();
System.out.println(isocodesCountriesJson.getClass());
System.out.println(cgspaceCountriesJson.getClass());