INT-2514 - Remove redundant cast in AutoCreateCandidatesCollector

Jira: https://jira.springsource.org/browse/INT-2514
This commit is contained in:
Gunnar Hillert
2012-06-18 16:37:50 -04:00
committed by Gary Russell
parent 41d73d91b3
commit 7651d9fdf7

View File

@@ -69,7 +69,7 @@ final class ChannelInitializer implements BeanFactoryAware, InitializingBean {
}
else {
AutoCreateCandidatesCollector channelCandidatesCollector =
(AutoCreateCandidatesCollector) beanFactory.getBean(AUTO_CREATE_CHANNEL_CANDIDATES_BEAN_NAME, AutoCreateCandidatesCollector.class);
beanFactory.getBean(AUTO_CREATE_CHANNEL_CANDIDATES_BEAN_NAME, AutoCreateCandidatesCollector.class);
Assert.notNull(channelCandidatesCollector, "Failed to locate '" +
ChannelInitializer.AUTO_CREATE_CHANNEL_CANDIDATES_BEAN_NAME);
// at this point channelNames are all resolved with placeholders and SpEL