Skip to content

Commit 102fce3

Browse files
PiyalAhmedphilwebb
authored andcommitted
Polish
See gh-42075
1 parent fb78303 commit 102fce3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

buildSrc/src/main/java/org/springframework/boot/build/antora/GenerateAntoraPlaybook.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private void addAntoraContentStartPaths(Set<String> startPaths) {
175175
private void addDir(Map<String, Object> data) {
176176
Path playbookDir = toRealPath(getOutputFile().get().getAsFile().toPath()).getParent();
177177
Path outputDir = toRealPath(getProject().getBuildDir().toPath().resolve("site"));
178-
data.put("output", Map.of("dir", "." + File.separator + playbookDir.relativize(outputDir).toString()));
178+
data.put("output", Map.of("dir", "." + File.separator + playbookDir.relativize(outputDir)));
179179
}
180180

181181
@SuppressWarnings("unchecked")

buildSrc/src/main/java/org/springframework/boot/build/bom/ManagedDependencies.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static ManagedDependencies ofBom(File bom) {
9999

100100
static String asId(String groupId, String artifactId, String version, String classifier) {
101101
String id = groupId + ":" + artifactId + ":" + version;
102-
if (classifier != null && classifier.length() > 0) {
102+
if (classifier != null && !classifier.isEmpty()) {
103103
id = id + ":" + classifier;
104104
}
105105
return id;

0 commit comments

Comments
 (0)