Commit a5200568 authored by Phillip Webb's avatar Phillip Webb

Make containsDescendantOf a default method

Change `ConfigurationPropertySource.containsDescendantOf` to have a
default implementation that return `UNKNOWN`.

Fixes gh-12539
parent 63b8ccc7
/* /*
* Copyright 2012-2017 the original author or authors. * Copyright 2012-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -50,7 +50,10 @@ public interface ConfigurationPropertySource { ...@@ -50,7 +50,10 @@ public interface ConfigurationPropertySource {
* @param name the name to check * @param name the name to check
* @return if the source contains any descendants * @return if the source contains any descendants
*/ */
ConfigurationPropertyState containsDescendantOf(ConfigurationPropertyName name); default ConfigurationPropertyState containsDescendantOf(
ConfigurationPropertyName name) {
return ConfigurationPropertyState.UNKNOWN;
}
/** /**
* Return a filtered variant of this source, containing only names that match the * Return a filtered variant of this source, containing only names that match the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment