Skip to content

Commit

Permalink
close file stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Kaufmann committed Apr 5, 2018
1 parent 1bd81d7 commit 95dd31b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,17 @@ private MultibrowserConfiguration()
File testEnvironmentFile = new File(TEST_ENVIRONMENT_FILE);
if (testEnvironmentFile.exists())
{
testEnvironmentProperties.load(new FileInputStream(testEnvironmentFile));
FileInputStream fileInputStream = new FileInputStream(testEnvironmentFile);
testEnvironmentProperties.load(fileInputStream);
fileInputStream.close();
}

File browerProfileFile = new File(BROWSER_PROFILE_FILE);
if (browerProfileFile.exists())
{
browserProfileProperties.load(new FileInputStream(browerProfileFile));
FileInputStream fileInputStream = new FileInputStream(browerProfileFile);
browserProfileProperties.load(fileInputStream);
fileInputStream.close();
}
}
catch (Exception e)
Expand Down

0 comments on commit 95dd31b

Please sign in to comment.