refactor to use the switch expression when possible to make the code more clean about the issue: https://github.com/spring-projects/spring-boot/issues/28180
Comment From: philwebb
Thanks for the pull-request, but I think some of these changes will break things. Specifically, any case without a break could run multiple code paths. I think we intended to use the new ->
syntax with #28180.
Comment From: wilkinsona
I agree with Phil. I don't think we should merge this as it'll break things in a number of places due to fall-through. I also find the code harder to read in a few places. Thanks anyway, @Tharik67.