Skip to content

Commit cf8bc18

Browse files
committed
Polish
1 parent 33aa8f7 commit cf8bc18

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

buildSrc/src/main/java/org/springframework/boot/build/DeployedPlugin.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,7 +38,6 @@ public class DeployedPlugin implements Plugin<Project> {
3838
public static final String GENERATE_POM_TASK_NAME = "generatePomFileForMavenPublication";
3939

4040
@Override
41-
@SuppressWarnings("deprecation")
4241
public void apply(Project project) {
4342
project.getPlugins().apply(MavenPublishPlugin.class);
4443
project.getPlugins().apply(MavenRepositoryPlugin.class);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -84,7 +84,7 @@ Stream<String> names() {
8484

8585
static final class AntoraExtensionsConfiguration {
8686

87-
private Map<String, Map<String, Object>> extensions = new TreeMap<>();
87+
private final Map<String, Map<String, Object>> extensions = new TreeMap<>();
8888

8989
private AntoraExtensionsConfiguration(List<String> names) {
9090
names.forEach((name) -> this.extensions.put(name, null));

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,9 +616,9 @@ public void setIssueLabels(List<String> issueLabels) {
616616

617617
public static final class GitHub {
618618

619-
private String organization;
619+
private final String organization;
620620

621-
private String repository;
621+
private final String repository;
622622

623623
private final List<String> issueLabels;
624624

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -541,7 +541,7 @@ public String toString() {
541541

542542
public record Link(String rootName, Function<LibraryVersion, String> factory, List<String> packages) {
543543

544-
private static final Pattern PACKAGE_EXPAND = Pattern.compile("^(.*)\\[(.*)\\]$");
544+
private static final Pattern PACKAGE_EXPAND = Pattern.compile("^(.*)\\[(.*)]$");
545545

546546
public Link {
547547
packages = (packages != null) ? List.copyOf(expandPackages(packages)) : Collections.emptyList();

buildSrc/src/main/java/org/springframework/boot/build/context/properties/Asciidoc.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,14 @@ class Asciidoc {
2929
this.content = new StringBuilder();
3030
}
3131

32-
Asciidoc appendWithHardLineBreaks(Object... items) {
32+
void appendWithHardLineBreaks(Object... items) {
3333
for (Object item : items) {
3434
appendln("`+", item, "+` +");
3535
}
36-
return this;
3736
}
3837

39-
Asciidoc appendln(Object... items) {
40-
return append(items).newLine();
38+
void appendln(Object... items) {
39+
append(items).newLine();
4140
}
4241

4342
Asciidoc append(Object... items) {
@@ -47,8 +46,8 @@ Asciidoc append(Object... items) {
4746
return this;
4847
}
4948

50-
Asciidoc newLine() {
51-
return append(System.lineSeparator());
49+
void newLine() {
50+
append(System.lineSeparator());
5251
}
5352

5453
@Override

0 commit comments

Comments
 (0)