Remove unnecessary toString() call
See gh-46259 Signed-off-by: Piyal Ahmed <piya.salamence@gmail.com>
This commit is contained in:
parent
e3bfc1d293
commit
2b14cfee3c
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue