Skip to content

Commit 6e67661

Browse files
committed
Polish
1 parent 65a862c commit 6e67661

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataImporter.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
import org.springframework.boot.logging.DeferredLogFactory;
3131
import org.springframework.core.log.LogMessage;
32+
import org.springframework.util.Assert;
3233

3334
/**
3435
* Imports {@link ConfigData} by {@link ConfigDataLocationResolver resolving} and
@@ -63,6 +64,10 @@ class ConfigDataImporter {
6364
*/
6465
ConfigDataImporter(DeferredLogFactory logFactory, ConfigDataNotFoundAction notFoundAction,
6566
ConfigDataLocationResolvers resolvers, ConfigDataLoaders loaders) {
67+
Assert.notNull(resolvers, "ConfigDataLocationResolvers must not be null");
68+
Assert.notNull(loaders, "ConfigDataLoaders must not be null");
69+
Assert.notNull(notFoundAction, "ConfigDataNotFoundAction must not be null");
70+
6671
this.logger = logFactory.getLog(getClass());
6772
this.resolvers = resolvers;
6873
this.loaders = loaders;

0 commit comments

Comments
 (0)