mirror of
https://github.com/ilri/cgspace-java-helpers.git
synced 2025-06-08 02:01:46 +02:00
Close BufferedReader after we use it
This commit is contained in:
@ -79,6 +79,7 @@ public class CountryCodeTagger extends AbstractCurationTask
|
|||||||
|
|
||||||
reader = new BufferedReader(new InputStreamReader(this.getClass().getResourceAsStream(cgspaceCountriesJsonPath)));
|
reader = new BufferedReader(new InputStreamReader(this.getClass().getResourceAsStream(cgspaceCountriesJsonPath)));
|
||||||
CountriesVocabulary cgspaceCountriesJson = gson.fromJson(reader, CountriesVocabulary.class);
|
CountriesVocabulary cgspaceCountriesJson = gson.fromJson(reader, CountriesVocabulary.class);
|
||||||
|
reader.close();
|
||||||
|
|
||||||
System.out.println(isocodesCountriesJson.getClass());
|
System.out.println(isocodesCountriesJson.getClass());
|
||||||
System.out.println(cgspaceCountriesJson.getClass());
|
System.out.println(cgspaceCountriesJson.getClass());
|
||||||
|
Reference in New Issue
Block a user