Add more nullability annotations to

buildpack/spring-boot-buildpack-platform

See gh-46587
This commit is contained in:
Moritz Halbritter
2025-08-11 13:12:53 +02:00
parent 053fabfec9
commit 6f41eb4915
2 changed files with 2 additions and 2 deletions
@@ -359,7 +359,7 @@ public class BuildRequest {
* @return an updated build request
* @since 2.6.0
*/
public BuildRequest withNetwork(String network) {
public BuildRequest withNetwork(@Nullable String network) {
return new BuildRequest(this.name, this.applicationContent, this.builder, this.trustBuilder, this.runImage,
this.creator, this.env, this.cleanCache, this.verboseLogging, this.pullPolicy, this.publish,
this.buildpacks, this.bindings, network, this.tags, this.buildWorkspace, this.buildCache,
@@ -46,7 +46,7 @@ public record BuilderDockerConfiguration(@Nullable DockerConnectionConfiguration
return withConnection(new DockerConnectionConfiguration.Context(context));
}
public BuilderDockerConfiguration withHost(String address, boolean secure, String certificatePath) {
public BuilderDockerConfiguration withHost(String address, boolean secure, @Nullable String certificatePath) {
return withConnection(new DockerConnectionConfiguration.Host(address, secure, certificatePath));
}