Polish OnBeanCondition message

See gh-18727
This commit is contained in:
wonwoo
2019-10-24 19:53:47 +09:00
committed by Stephane Nicoll
parent 7de861b224
commit 3369d80f3f

View File

@@ -598,17 +598,19 @@ class OnBeanCondition extends FilteringSpringBootCondition implements Configurat
if (hasNames) {
string.append("names: ");
string.append(StringUtils.collectionToCommaDelimitedString(this.names));
string.append(hasTypes ? "" : "; ");
string.append(hasTypes ? " " : "; ");
}
if (hasTypes) {
string.append("types: ");
string.append(StringUtils.collectionToCommaDelimitedString(this.types));
string.append(hasIgnoredTypes ? " " : "; ");
}
if (hasIgnoredTypes) {
string.append("ignored: ");
string.append(StringUtils.collectionToCommaDelimitedString(this.ignoredTypes));
string.append("; ");
}
string.append("; SearchStrategy: ");
string.append("SearchStrategy: ");
string.append(this.strategy.toString().toLowerCase(Locale.ENGLISH));
string.append(")");
return string.toString();