Skip to content

Commit ee0a66a

Browse files
committed
Merge pull request #18727 from wonwoo
* pr/18727: Polish OnBeanCondition message Closes gh-18727
2 parents 7de861b + 3369d80 commit ee0a66a

File tree

1 file changed

+4
-2
lines changed
  • spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition

1 file changed

+4
-2
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnBeanCondition.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,17 +598,19 @@ public String toString() {
598598
if (hasNames) {
599599
string.append("names: ");
600600
string.append(StringUtils.collectionToCommaDelimitedString(this.names));
601-
string.append(hasTypes ? "" : "; ");
601+
string.append(hasTypes ? " " : "; ");
602602
}
603603
if (hasTypes) {
604604
string.append("types: ");
605605
string.append(StringUtils.collectionToCommaDelimitedString(this.types));
606+
string.append(hasIgnoredTypes ? " " : "; ");
606607
}
607608
if (hasIgnoredTypes) {
608609
string.append("ignored: ");
609610
string.append(StringUtils.collectionToCommaDelimitedString(this.ignoredTypes));
611+
string.append("; ");
610612
}
611-
string.append("; SearchStrategy: ");
613+
string.append("SearchStrategy: ");
612614
string.append(this.strategy.toString().toLowerCase(Locale.ENGLISH));
613615
string.append(")");
614616
return string.toString();

0 commit comments

Comments
 (0)