When using IDEA for inspection, I found that some code can be simplified, so I submit a PR here.
Comment From: pivotal-issuemaster
@richard1230 Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: pivotal-issuemaster
@richard1230 Thank you for signing the Contributor License Agreement!
Comment From: snicoll
Thank you for making your first contribution to Spring Boot @richard1230. Please note we prefer to apply automatic inspection ourselves as there is a judgement call involved. For instance, while that if statement could certainly be simplified using the inspection, I find it harder to read than the current code so I've reverted that change, see https://github.com/spring-projects/spring-boot/commit/4165863859a69d148a851e29224df3beb0b75a2e for more details.