Fix [cast] compiler warnings
This commit is contained in:
committed by
Chris Beams
parent
b0986049a3
commit
6c14eaad61
@@ -73,7 +73,7 @@ public class BeanFactoryDestinationResolver implements DestinationResolver, Bean
|
||||
|
||||
Assert.state(this.beanFactory != null, "BeanFactory is required");
|
||||
try {
|
||||
return (Destination) this.beanFactory.getBean(destinationName, Destination.class);
|
||||
return this.beanFactory.getBean(destinationName, Destination.class);
|
||||
}
|
||||
catch (BeansException ex) {
|
||||
throw new DestinationResolutionException(
|
||||
|
||||
Reference in New Issue
Block a user