Remove unused unsatisfiedDependency.getInjectionPoint() call

Closes gh-5575
This commit is contained in:
Johnny Lim 2016-04-05 14:40:30 +09:00 committed by Andy Wilkinson
parent 232a808049
commit ab15d73bc8
1 changed files with 0 additions and 1 deletions

View File

@ -64,7 +64,6 @@ class NoUniqueBeanDefinitionExceptionFailureAnalyzer
message.append(String.format("%s required a single bean, but %d were found:%n", message.append(String.format("%s required a single bean, but %d were found:%n",
getConsumerDescription(unsatisfiedDependency), beanNames.length)); getConsumerDescription(unsatisfiedDependency), beanNames.length));
for (String beanName : beanNames) { for (String beanName : beanNames) {
unsatisfiedDependency.getInjectionPoint();
try { try {
BeanDefinition beanDefinition = this.beanFactory BeanDefinition beanDefinition = this.beanFactory
.getMergedBeanDefinition(beanName); .getMergedBeanDefinition(beanName);