mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
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:
parent
532fed3147
commit
2ed512ddb5
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user