Fix OnPropertyCondition no havingValue message

See gh-2193
pull/2400/head
Phillip Webb 10 years ago
parent 57442f5b12
commit 82bf60400a

@ -87,7 +87,7 @@ class OnPropertyCondition extends SpringBootCondition {
+ expandNames(prefix, missingProperties) + " ");
}
if (!nonMatchingProperties.isEmpty()) {
String expected = havingValue == null ? "!false" : havingValue;
String expected = StringUtils.hasLength(havingValue) ? havingValue : "!false";
message.append("expected '").append(expected).append("' for properties ")
.append(expandNames(prefix, nonMatchingProperties));
}

Loading…
Cancel
Save