Skip to content

Commit

Permalink
minor change to make sure we close IS -- #239
Browse files Browse the repository at this point in the history
  • Loading branch information
enridaga committed Jan 27, 2023
1 parent 519eb88 commit 52d0ed4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ public void triplify(Properties properties, FacadeXGraphBuilder builder) throws

// Add type Root
builder.addRoot(dataSourceId, root);
InputStream is = Triplifier.getInputStream(properties);
try (is){

try (InputStream is = Triplifier.getInputStream(properties);){
Reader in = new InputStreamReader(new BOMInputStream(is), charset);
Iterable<CSVRecord> records = format.parse(in);
Iterator<CSVRecord> recordIterator = records.iterator();
Expand Down

0 comments on commit 52d0ed4

Please sign in to comment.