Fix checkstyle issues with ternary expressions following the spring-javaformat upgrade. See gh-13932
spring-boot-tests