diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/StartupInfoLogger.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/StartupInfoLogger.java index 6c83eabc5c..84aa83bc59 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/StartupInfoLogger.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/StartupInfoLogger.java @@ -157,7 +157,7 @@ class StartupInfoLogger { value = defaultValue; } if (StringUtils.hasLength(value)) { - message.append(message.length() > 0 ? " " : ""); + message.append((message.length() > 0) ? " " : ""); message.append(prefix); message.append(value); }