This commit is contained in:
Phillip Webb
2016-04-07 12:20:10 -07:00
parent 6ff09bc876
commit 6550bb4cf1
3 changed files with 26 additions and 28 deletions

View File

@@ -288,10 +288,8 @@ class OnBeanCondition extends SpringBootCondition implements ConfigurationCondit
if (ex == null) {
throw new IllegalStateException(message);
}
else {
throw new IllegalStateException(message + " and the attempt to deduce"
+ " the bean's type failed", ex);
}
throw new IllegalStateException(message + " and the attempt to deduce"
+ " the bean's type failed", ex);
}
}