Merge pull request #7840 from corda/cc/dev/os/4.9/security_vulns

ENT-12287 - Security vulnerabilities
This commit is contained in:
Adel El-Beik 2024-10-14 17:00:24 +01:00 committed by GitHub
commit 60c5e97d54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -126,7 +126,7 @@ buildscript {
ext.jcabi_manifests_version = '1.1'
ext.picocli_version = '3.9.6'
ext.commons_lang_version = '3.9'
ext.commons_io_version = '2.6'
ext.commons_io_version = '2.17.0'
ext.controlsfx_version = '8.40.15'
ext.detekt_version = constants.getProperty('detektVersion')
ext.docker_java_version = constants.getProperty("dockerJavaVersion")

View File

@ -55,7 +55,12 @@ class BlobInspectorTest {
private fun run(resourceName: String): String {
blobInspector.source = javaClass.getResource(resourceName)
val writer = StringWriter()
blobInspector.run(PrintStream(WriterOutputStream(writer, UTF_8)))
val oStream = WriterOutputStream.builder()
.setCharset(UTF_8)
.setWriter(writer)
.get()
blobInspector.run(PrintStream(oStream))
val output = writer.toString()
println(output)
return output