From 8da295998b9634522178614d1b790f583a456834 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 10 Oct 2018 12:20:03 -0700 Subject: [PATCH] Polish --- .../properties/source/ConfigurationPropertySource.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertySource.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertySource.java index 681897dfb7..25cf1304b5 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertySource.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertySource.java @@ -19,7 +19,6 @@ package org.springframework.boot.context.properties.source; import java.util.function.Predicate; import org.springframework.boot.origin.OriginTrackedValue; -import org.springframework.core.env.PropertySource; /** * A source of {@link ConfigurationProperty ConfigurationProperties}. @@ -77,9 +76,11 @@ public interface ConfigurationPropertySource { } /** - * Return the underlying {@link PropertySource}. - * @return the underlying property source. + * Return the underlying source that is actually providing the properties. + * @return the underlying property source or {@code null}. */ - Object getUnderlyingSource(); + default Object getUnderlyingSource() { + return null; + } }