Browse Source

Add more nullability annotations to build-plugin/spring-boot-gradle-plugin

See gh-46587
pull/46780/head
Moritz Halbritter 4 months ago
parent
commit
d5c4d85e72
  1. 1
      build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootZipCopyAction.java

1
build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootZipCopyAction.java

@ -287,6 +287,7 @@ class BootZipCopyAction implements CopyAction { @@ -287,6 +287,7 @@ class BootZipCopyAction implements CopyAction {
if (BootZipCopyAction.this.layerResolver != null) {
Layer layer = BootZipCopyAction.this.layerResolver.getLayer(details);
Assert.state(this.layerIndex != null, "'layerIndex' must not be null");
Assert.state(layer != null, "'layer' must not be null");
this.layerIndex.add(layer, name);
}
}

Loading…
Cancel
Save