Merge pull request #18727 from wonwoo
* pr/18727: Polish OnBeanCondition message Closes gh-18727
This commit is contained in:
@@ -598,17 +598,19 @@ class OnBeanCondition extends FilteringSpringBootCondition implements Configurat
|
|||||||
if (hasNames) {
|
if (hasNames) {
|
||||||
string.append("names: ");
|
string.append("names: ");
|
||||||
string.append(StringUtils.collectionToCommaDelimitedString(this.names));
|
string.append(StringUtils.collectionToCommaDelimitedString(this.names));
|
||||||
string.append(hasTypes ? "" : "; ");
|
string.append(hasTypes ? " " : "; ");
|
||||||
}
|
}
|
||||||
if (hasTypes) {
|
if (hasTypes) {
|
||||||
string.append("types: ");
|
string.append("types: ");
|
||||||
string.append(StringUtils.collectionToCommaDelimitedString(this.types));
|
string.append(StringUtils.collectionToCommaDelimitedString(this.types));
|
||||||
|
string.append(hasIgnoredTypes ? " " : "; ");
|
||||||
}
|
}
|
||||||
if (hasIgnoredTypes) {
|
if (hasIgnoredTypes) {
|
||||||
string.append("ignored: ");
|
string.append("ignored: ");
|
||||||
string.append(StringUtils.collectionToCommaDelimitedString(this.ignoredTypes));
|
string.append(StringUtils.collectionToCommaDelimitedString(this.ignoredTypes));
|
||||||
|
string.append("; ");
|
||||||
}
|
}
|
||||||
string.append("; SearchStrategy: ");
|
string.append("SearchStrategy: ");
|
||||||
string.append(this.strategy.toString().toLowerCase(Locale.ENGLISH));
|
string.append(this.strategy.toString().toLowerCase(Locale.ENGLISH));
|
||||||
string.append(")");
|
string.append(")");
|
||||||
return string.toString();
|
return string.toString();
|
||||||
|
|||||||
Reference in New Issue
Block a user