- Removed @SuppressWarnings as it was no longer needed.
- Used pattern matching.
- Updated documentation.
- Replaced class with record.
Comment From: arefbehboudi
@wilkinsona Thanks for the review. I've updated the code based on your feedback. Please check it again when you can.
Comment From: snicoll
@arefbehboudi thanks for the contribution. It wasn't building as the formatting was no longer correct. FTR you could have seen that locally by building the module, something like:
./gradlew :spring-boot-project:spring-boot:check
I've polished things in https://github.com/spring-projects/spring-boot/commit/ece5c6fe9e613831d2f0b2dd67ee4f7aa3828c76
Comment From: arefbehboudi
@snicoll Thanks for pointing that out! I'll make sure to run the build locally using the provided command to catch any formatting issues in the future. Thanks again for the guidance!