Remove unnecessary toString() calls
See gh-38739
This commit is contained in:
committed by
Phillip Webb
parent
b6e87cee35
commit
8599e5a986
@@ -89,7 +89,7 @@ public abstract class ArchitectureCheck extends DefaultTask {
|
||||
if (!violations.isEmpty()) {
|
||||
StringBuilder report = new StringBuilder();
|
||||
for (EvaluationResult violation : violations) {
|
||||
report.append(violation.getFailureReport().toString());
|
||||
report.append(violation.getFailureReport());
|
||||
report.append(String.format("%n"));
|
||||
}
|
||||
Files.writeString(outputFile.toPath(), report.toString(), StandardOpenOption.CREATE,
|
||||
|
||||
@@ -69,7 +69,7 @@ final class MavenMetadataVersionResolver implements VersionResolver {
|
||||
if ("/".equals(uri.getPath())) {
|
||||
return uri;
|
||||
}
|
||||
return URI.create(uri.toString() + "/");
|
||||
return URI.create(uri + "/");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user