We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a520b9 + 4d22c5f commit bbb56f9Copy full SHA for bbb56f9
test-framework/junit5/src/main/java/io/quarkus/test/junit/IntegrationTestUtil.java
@@ -433,9 +433,10 @@ static Properties readQuarkusArtifactProperties(ExtensionContext context) {
433
}
434
throw new IllegalStateException(errorMessage);
435
436
- try {
437
- Properties properties = new Properties();
438
- properties.load(new FileInputStream(artifactProperties.toFile()));
+
+ Properties properties = new Properties();
+ try (var fis = new FileInputStream(artifactProperties.toFile())) {
439
+ properties.load(fis);
440
return properties;
441
} catch (IOException e) {
442
throw new UncheckedIOException(
0 commit comments