From 85c1908a3cde208c4e2cab2a13f0200e9712fe8a Mon Sep 17 00:00:00 2001 From: amontenegro Date: Fri, 20 Oct 2023 15:05:58 -0600 Subject: [PATCH] Close file reader --- .../orcid/scheduler/loader/cli/EmailDomainToRorLoader.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/orcid-scheduler-web/src/main/java/org/orcid/scheduler/loader/cli/EmailDomainToRorLoader.java b/orcid-scheduler-web/src/main/java/org/orcid/scheduler/loader/cli/EmailDomainToRorLoader.java index 864dc347c59..8037f5d62d0 100644 --- a/orcid-scheduler-web/src/main/java/org/orcid/scheduler/loader/cli/EmailDomainToRorLoader.java +++ b/orcid-scheduler-web/src/main/java/org/orcid/scheduler/loader/cli/EmailDomainToRorLoader.java @@ -32,6 +32,7 @@ public class EmailDomainToRorLoader { private List> csvData; private Set invalidDomains = new HashSet(); private Map map = new HashMap(); + private int updatedEntries = 0; private int createdEntries = 0; @@ -75,7 +76,8 @@ private void load(String filePath) throws IOException { if(r.size() > 1) csvData.add(r); } - } + } + fileReader.close(); } private void processCsvData() {