Skip to content

Commit

Permalink
Merge pull request #31718 from geoand/#31713
Browse files Browse the repository at this point in the history
Properly close metadata file in integration tests
  • Loading branch information
geoand authored Mar 9, 2023
2 parents 9a520b9 + 4d22c5f commit bbb56f9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,10 @@ static Properties readQuarkusArtifactProperties(ExtensionContext context) {
}
throw new IllegalStateException(errorMessage);
}
try {
Properties properties = new Properties();
properties.load(new FileInputStream(artifactProperties.toFile()));

Properties properties = new Properties();
try (var fis = new FileInputStream(artifactProperties.toFile())) {
properties.load(fis);
return properties;
} catch (IOException e) {
throw new UncheckedIOException(
Expand Down

0 comments on commit bbb56f9

Please sign in to comment.