Remove unnecessary toString() call

See gh-46259

Signed-off-by: Piyal Ahmed <piya.salamence@gmail.com>
This commit is contained in:
Piyal Ahmed 2025-07-03 21:18:17 +08:00 committed by Stéphane Nicoll
parent e3bfc1d293
commit 2b14cfee3c
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ public abstract class GenerateAntoraPlaybook extends DefaultTask {
return project.provider(() -> {
Path playbookDir = toRealPath(getOutputFile().get().getAsFile().toPath()).getParent();
Path outputDir = toRealPath(siteDirectory);
return "." + File.separator + playbookDir.relativize(outputDir).toString();
return "." + File.separator + playbookDir.relativize(outputDir);
});
}

View File

@ -83,7 +83,7 @@ class AutoConfigureTestDatabaseDockerComposeIntegrationTests {
Files.writeString(composeFile, composeFileContent);
TestPropertySourceUtils.addInlinedPropertiesToEnvironment(applicationContext,
"spring.docker.compose.skip.in-tests=false", "spring.docker.compose.stop.command=down",
"spring.docker.compose.file=" + composeFile.toAbsolutePath().toString());
"spring.docker.compose.file=" + composeFile.toAbsolutePath());
}
catch (IOException ex) {
throw new UncheckedIOException(ex);