Use model.deepMarkAsSkipped in SpringProfileModelHandler

Switch `model.markAsSkipped` to `model.deepMarkAsSkipped` in
`SpringProfileModelHandler`.

Although the current call doesn't appear to be causing issues,
it seems best to align our <springProfile> support with the way
that Logback implements its own `<if>` support.

Closes gh-33618
This commit is contained in:
Phillip Webb 2022-12-22 00:50:56 -08:00
parent 532fed3147
commit 2ed512ddb5

View File

@ -50,7 +50,7 @@ class SpringProfileModelHandler extends ModelHandlerBase {
public void handle(ModelInterpretationContext intercon, Model model) throws ModelHandlerException {
SpringProfileModel profileModel = (SpringProfileModel) model;
if (!acceptsProfiles(intercon, profileModel)) {
model.markAsSkipped();
model.deepMarkAsSkipped();
}
}