From 1ab397323e38faba47b5f13d3381d0de5ddd2e1e Mon Sep 17 00:00:00 2001 From: Iurii Ignatko Date: Thu, 24 Oct 2024 22:55:51 +0200 Subject: [PATCH] Remove cast to String --- .../org/asciidoctor/gradle/remote/AsciidoctorJSetup.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jvm/src/main/groovy/org/asciidoctor/gradle/remote/AsciidoctorJSetup.groovy b/jvm/src/main/groovy/org/asciidoctor/gradle/remote/AsciidoctorJSetup.groovy index ae14b0af..a9179fe2 100644 --- a/jvm/src/main/groovy/org/asciidoctor/gradle/remote/AsciidoctorJSetup.groovy +++ b/jvm/src/main/groovy/org/asciidoctor/gradle/remote/AsciidoctorJSetup.groovy @@ -65,7 +65,7 @@ class AsciidoctorJSetup implements Serializable { runConfiguration.with { final String srcRelative = getRelativePath(file.parentFile, sourceDir) - options.each { key, value -> optionsBuilder.option(key, value.toString()) } + options.each { key, value -> optionsBuilder.option(key, value) } optionsBuilder.backend(backendName) optionsBuilder.inPlace(false) optionsBuilder.safe(SafeMode.safeMode(safeModeLevel)) @@ -82,7 +82,7 @@ class AsciidoctorJSetup implements Serializable { } AttributesBuilder attributesBuilder = Attributes.builder() - attributes.each { key, value -> attributesBuilder.attribute(key, value.toString()) } + attributes.each { key, value -> attributesBuilder.attribute(key, value) } attributesBuilder.attribute(ATTR_PROJECT_DIR, projectDir.absolutePath) attributesBuilder.attribute(ATTR_ROOT_DIR, rootDir.absolutePath) attributesBuilder.attribute(ATTR_REL_SRC_DIR, srcRelative.empty ? '.' : srcRelative)