Nullability refinements on private and static methods
Based on IntelliJ IDEA 2017.3 introspection results. Issue: SPR-15756
This commit is contained in:
@@ -345,7 +345,9 @@ public class JmsListenerAnnotationBeanPostProcessor
|
||||
|
||||
private MessageHandlerMethodFactory createDefaultJmsHandlerMethodFactory() {
|
||||
DefaultMessageHandlerMethodFactory defaultFactory = new DefaultMessageHandlerMethodFactory();
|
||||
defaultFactory.setBeanFactory(beanFactory);
|
||||
if (beanFactory != null) {
|
||||
defaultFactory.setBeanFactory(beanFactory);
|
||||
}
|
||||
defaultFactory.afterPropertiesSet();
|
||||
return defaultFactory;
|
||||
}
|
||||
|
||||
@@ -76,6 +76,7 @@ public abstract class JmsGatewaySupport implements InitializingBean {
|
||||
/**
|
||||
* Return the JMS ConnectionFactory used by the gateway.
|
||||
*/
|
||||
@Nullable
|
||||
public final ConnectionFactory getConnectionFactory() {
|
||||
return (this.jmsTemplate != null ? this.jmsTemplate.getConnectionFactory() : null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user