mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-09 19:09:03 +00:00
Add more nullability annotations to
buildpack/spring-boot-buildpack-platform See gh-46587
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
+1
-1
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user