Polishing

This commit is contained in:
Sam Brannen 2016-08-31 20:52:39 +02:00
parent e574820dc9
commit feb02f813e
1 changed files with 2 additions and 2 deletions

View File

@ -104,9 +104,9 @@ abstract class AbstractExpressionEvaluatingCondition implements ContainerExecuti
"The expression in @%s on [%s] must not be blank", annotationType.getSimpleName(), element)));
// @formatter:on
boolean result = evaluateExpression(expression, annotationType, context);
boolean evaluatedToTrue = evaluateExpression(expression, annotationType, context);
if (result) {
if (evaluatedToTrue) {
String adjective = (enabledOnTrue ? "enabled" : "disabled");
String reason = annotation.map(reasonExtractor).filter(StringUtils::hasText).orElseGet(
() -> String.format("%s is %s because @%s(\"%s\") evaluated to true", element, adjective,