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) {
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user