Add missing @Nullable annotations on parameters
Issue: SPR-15540
This commit is contained in:
@@ -19,6 +19,7 @@ package org.springframework.jms.remoting;
|
||||
import org.springframework.aop.framework.ProxyFactory;
|
||||
import org.springframework.beans.factory.BeanClassLoaderAware;
|
||||
import org.springframework.beans.factory.FactoryBean;
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
/**
|
||||
@@ -65,7 +66,7 @@ public class JmsInvokerProxyFactoryBean extends JmsInvokerClientInterceptor
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBeanClassLoader(ClassLoader classLoader) {
|
||||
public void setBeanClassLoader(@Nullable ClassLoader classLoader) {
|
||||
this.beanClassLoader = classLoader;
|
||||
}
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ public class MappingJackson2MessageConverter implements SmartMessageConverter, B
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBeanClassLoader(ClassLoader classLoader) {
|
||||
public void setBeanClassLoader(@Nullable ClassLoader classLoader) {
|
||||
this.beanClassLoader = classLoader;
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ public class MappingJackson2MessageConverter implements SmartMessageConverter, B
|
||||
}
|
||||
|
||||
@Override
|
||||
public Message toMessage(Object object, Session session, Object conversionHint)
|
||||
public Message toMessage(Object object, Session session, @Nullable Object conversionHint)
|
||||
throws JMSException, MessageConversionException {
|
||||
|
||||
return toMessage(object, session, getSerializationView(conversionHint));
|
||||
|
||||
@@ -23,6 +23,7 @@ import javax.jms.Session;
|
||||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.beans.factory.BeanFactory;
|
||||
import org.springframework.beans.factory.BeanFactoryAware;
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
@@ -70,7 +71,7 @@ public class BeanFactoryDestinationResolver implements DestinationResolver, Bean
|
||||
|
||||
|
||||
@Override
|
||||
public Destination resolveDestinationName(Session session, String destinationName, boolean pubSubDomain)
|
||||
public Destination resolveDestinationName(@Nullable Session session, String destinationName, boolean pubSubDomain)
|
||||
throws JMSException {
|
||||
|
||||
Assert.state(this.beanFactory != null, "BeanFactory is required");
|
||||
|
||||
@@ -22,6 +22,7 @@ import javax.jms.Queue;
|
||||
import javax.jms.Session;
|
||||
import javax.jms.Topic;
|
||||
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
@@ -46,7 +47,7 @@ public class DynamicDestinationResolver implements DestinationResolver {
|
||||
* @see #resolveQueue(javax.jms.Session, String)
|
||||
*/
|
||||
@Override
|
||||
public Destination resolveDestinationName(Session session, String destinationName, boolean pubSubDomain)
|
||||
public Destination resolveDestinationName(@Nullable Session session, String destinationName, boolean pubSubDomain)
|
||||
throws JMSException {
|
||||
|
||||
Assert.notNull(session, "Session must not be null");
|
||||
|
||||
@@ -26,6 +26,7 @@ import javax.jms.Topic;
|
||||
import javax.naming.NamingException;
|
||||
|
||||
import org.springframework.jndi.JndiLocatorSupport;
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
@@ -99,7 +100,7 @@ public class JndiDestinationResolver extends JndiLocatorSupport implements Cachi
|
||||
|
||||
|
||||
@Override
|
||||
public Destination resolveDestinationName(Session session, String destinationName, boolean pubSubDomain)
|
||||
public Destination resolveDestinationName(@Nullable Session session, String destinationName, boolean pubSubDomain)
|
||||
throws JMSException {
|
||||
|
||||
Assert.notNull(destinationName, "Destination name must not be null");
|
||||
|
||||
Reference in New Issue
Block a user