diff --git a/codyze-core/src/test/kotlin/de/fraunhofer/aisec/codyze/core/VersionProviderTest.kt b/codyze-core/src/test/kotlin/de/fraunhofer/aisec/codyze/core/VersionProviderTest.kt index 8cb9738e8..af0d0cdfc 100644 --- a/codyze-core/src/test/kotlin/de/fraunhofer/aisec/codyze/core/VersionProviderTest.kt +++ b/codyze-core/src/test/kotlin/de/fraunhofer/aisec/codyze/core/VersionProviderTest.kt @@ -35,7 +35,7 @@ class VersionProviderTest { // change property s.t. internal check fails val oldValue = properties.setProperty("project.name", "test") as String - FileOutputStream(File(propFile.toURI())).use { + File(propFile.toURI()).outputStream().use { properties.store(it, null) } @@ -50,7 +50,7 @@ class VersionProviderTest { // restore original properties file properties.setProperty("project.name", oldValue) - FileOutputStream(File(propFile.toURI())).use { + File(propFile.toURI()).outputStream().use { properties.store(it, null) } }