@@ -494,7 +494,6 @@ public <T> T bindOrCreate(ConfigurationPropertyName name, Bindable<T> target, @N
494494 return result ;
495495 }
496496
497-
498497 private boolean hasDescendantInAnySource (Context context , ConfigurationPropertyName name ) {
499498 for (ConfigurationPropertySource source : context .getSources ()) {
500499 if (source .containsDescendantOf (name ) == ConfigurationPropertyState .PRESENT ) {
@@ -515,12 +514,12 @@ private boolean hasDescendantInAnySource(Context context, ConfigurationPropertyN
515514 return null ;
516515 }
517516 DataObjectPropertyBinder propertyBinder = (propertyName , propertyTarget ) -> {
518- ConfigurationPropertyName fullName = name .append (propertyName );
519- ConfigurationProperty property = findProperty (fullName , propertyTarget , context );
520- boolean fromSource = (property != null ) || hasDescendantInAnySource (context , fullName );
521- Object value = bind (fullName , propertyTarget , handler , context , false , false );
522- return new DataObjectPropertyBinder .PropertyBinding (value , fromSource );
523- };
517+ ConfigurationPropertyName fullName = name .append (propertyName );
518+ ConfigurationProperty property = findProperty (fullName , propertyTarget , context );
519+ boolean fromSource = (property != null ) || hasDescendantInAnySource (context , fullName );
520+ Object value = bind (fullName , propertyTarget , handler , context , false , false );
521+ return new DataObjectPropertyBinder .PropertyBinding (value , fromSource );
522+ };
524523 Supplier <@ Nullable Object > supplier = () -> fromDataObjectBinders (bindMethod ,
525524 (dataObjectBinder ) -> dataObjectBinder .bind (name , target , context , propertyBinder ,
526525 fallbackToDefaultValue ));
0 commit comments