diff options
| author | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2020-03-24 15:52:39 -0300 |
|---|---|---|
| committer | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2020-03-24 15:52:39 -0300 |
| commit | e1b0b2fa0d6bc3dd114713b3fe2f021f0da74c38 (patch) | |
| tree | cca812682a4c53bdde6793cc29cf566a39a1c67d /src/main/java/tlIItools/NameFileReader.java | |
| parent | b07c320acf7f75ca47c2e2e16708e7865a548c88 (diff) | |
| parent | 7689fed35a28630a8c7943fda776da43c743f3f0 (diff) | |
Merge branch 'master' of https://github.com/bculkin2442/tlIItools
Diffstat (limited to 'src/main/java/tlIItools/NameFileReader.java')
| -rw-r--r-- | src/main/java/tlIItools/NameFileReader.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/tlIItools/NameFileReader.java b/src/main/java/tlIItools/NameFileReader.java index ad2a83b4..c63ac417 100644 --- a/src/main/java/tlIItools/NameFileReader.java +++ b/src/main/java/tlIItools/NameFileReader.java @@ -111,8 +111,6 @@ public class NameFileReader { * @return The number of files read. */ public void readFrom(String from) { - int ret; - try (FileReader fr = new FileReader(from)) { readFrom(fr); } catch (IOException ioex) { @@ -131,8 +129,6 @@ public class NameFileReader { * @return The number of files read. */ public void readFrom(Reader r) { - int numFiles = 0; - Scanner scn = new Scanner(r); while (scn.hasNextLine()) { @@ -156,6 +152,8 @@ public class NameFileReader { skipAdd = false; } + + scn.close(); } /** |
