language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-context/src/main/java/org/springframework/format/datetime/standard/DateTimeContext.java
@@ -47,7 +47,7 @@ public class DateTimeContext { /** * Set the user's chronology (calendar system). */ - public void setChronology(Chronology chronology) { + public void setChronology(@Nullable Chronology chronology) { this.chronology = chronology; } @@ -67,7 +67,7 @@ public Chronology getChronology() { ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-context/src/main/java/org/springframework/jmx/access/MBeanClientInterceptor.java
@@ -158,7 +158,7 @@ public void setServiceUrl(String url) throws MalformedURLException { * Specify the environment for the JMX connector. * @see javax.management.remote.JMXConnectorFactory#connect(javax.management.remote.JMXServiceURL, java.util.Map) */ - public void setEnvironment(Map<String, ?> environment) ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-context/src/main/java/org/springframework/jmx/access/NotificationListenerRegistrar.java
@@ -82,7 +82,7 @@ public void setServer(MBeanServerConnection server) { * Specify the environment for the JMX connector. * @see javax.management.remote.JMXConnectorFactory#connect(javax.management.remote.JMXServiceURL, java.util.Map) */ - public void setEnvironment(Map<String, ?> environment) { + public void s...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-context/src/main/java/org/springframework/jmx/export/assembler/AbstractReflectiveMBeanInfoAssembler.java
@@ -172,6 +172,7 @@ public abstract class AbstractReflectiveMBeanInfoAssembler extends AbstractMBean /** * Default value for the JMX field "currencyTimeLimit". */ + @Nullable private Integer defaultCurrencyTimeLimit; /** @@ -181,6 +182,7 @@ public abstract class AbstractReflectiveMBeanInfoAssembler extend...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-context/src/main/java/org/springframework/jmx/export/metadata/ManagedNotification.java
@@ -27,10 +27,13 @@ */ public class ManagedNotification { + @Nullable private String[] notificationTypes; + @Nullable private String name; + @Nullable private String description; @@ -45,7 +48,7 @@ public void setNotificationType(String notificationType) { /** * Set a list of notification types. ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-context/src/main/java/org/springframework/jmx/support/MBeanRegistrationSupport.java
@@ -96,7 +96,7 @@ public class MBeanRegistrationSupport { * be registered. The {@code MBeanExporter} will attempt to locate an * existing {@code MBeanServer} if none is supplied. */ - public void setServer(MBeanServer server) { + public void setServer(@Nullable MBeanServer server) { this.server = server; ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-context/src/main/java/org/springframework/jndi/JndiObjectLocator.java
@@ -62,7 +62,7 @@ public abstract class JndiObjectLocator extends JndiLocatorSupport implements In * @param jndiName the JNDI name to look up * @see #setResourceRef */ - public void setJndiName(String jndiName) { + public void setJndiName(@Nullable String jndiName) { this.jndiName = jndiName; }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-context/src/main/java/org/springframework/remoting/support/RemoteInvocation.java
@@ -181,7 +181,7 @@ public Serializable getAttribute(String key) { * @see #addAttribute * @see #getAttribute */ - public void setAttributes(Map<String, Serializable> attributes) { + public void setAttributes(@Nullable Map<String, Serializable> attributes) { this.attributes = attributes; }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-context/src/main/java/org/springframework/remoting/support/RemoteInvocationResult.java
@@ -41,8 +41,10 @@ public class RemoteInvocationResult implements Serializable { private static final long serialVersionUID = 2138555143707773549L; + @Nullable private Object value; + @Nullable private Throwable exception; @@ -81,7 +83,7 @@ public RemoteInvocationResult() { * Use {@link #RemoteInvoca...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-context/src/main/java/org/springframework/scheduling/config/ScheduledTaskRegistrar.java
@@ -92,9 +92,11 @@ public void setTaskScheduler(TaskScheduler taskScheduler) { * {@link java.util.concurrent.ScheduledExecutorService} to be wrapped as a * {@code TaskScheduler}. */ - public void setScheduler(Object scheduler) { - Assert.notNull(scheduler, "Scheduler object must not be null"); - if (schedule...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-context/src/main/java/org/springframework/validation/DataBinder.java
@@ -424,7 +424,7 @@ public boolean isIgnoreInvalidFields() { * @see #setDisallowedFields * @see #isAllowed(String) */ - public void setAllowedFields(String... allowedFields) { + public void setAllowedFields(@Nullable String... allowedFields) { this.allowedFields = PropertyAccessorUtils.canonicalPropertyName...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-core/src/main/java/org/springframework/core/convert/support/ConvertingPropertyEditorAdapter.java
@@ -56,7 +56,7 @@ public ConvertingPropertyEditorAdapter(ConversionService conversionService, Type @Override - public void setAsText(String text) throws IllegalArgumentException { + public void setAsText(@Nullable String text) throws IllegalArgumentException { setValue(this.conversionService.convert(text, Type...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-core/src/main/java/org/springframework/core/task/SimpleAsyncTaskExecutor.java
@@ -103,7 +103,7 @@ public SimpleAsyncTaskExecutor(ThreadFactory threadFactory) { * @see #setThreadNamePrefix * @see #setThreadPriority */ - public void setThreadFactory(ThreadFactory threadFactory) { + public void setThreadFactory(@Nullable ThreadFactory threadFactory) { this.threadFactory = threadFactory;...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-core/src/main/java/org/springframework/util/CollectionUtils.java
@@ -430,7 +430,7 @@ public void addAll(MultiValueMap<K, V> values) { } @Override - public void set(K key, V value) { + public void set(K key, @Nullable V value) { List<V> values = new LinkedList<>(); values.add(value); this.map.put(key, values);
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-core/src/main/java/org/springframework/util/CustomizableThreadCreator.java
@@ -127,7 +127,7 @@ public void setThreadGroupName(String name) { * Specify the thread group that threads should be created in. * @see #setThreadGroupName */ - public void setThreadGroup(ThreadGroup threadGroup) { + public void setThreadGroup(@Nullable ThreadGroup threadGroup) { this.threadGroup = threadGro...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-core/src/main/java/org/springframework/util/LinkedMultiValueMap.java
@@ -101,7 +101,7 @@ public void addAll(MultiValueMap<K, V> values) { } @Override - public void set(K key, V value) { + public void set(K key, @Nullable V value) { List<V> values = new LinkedList<>(); values.add(value); this.targetMap.put(key, values);
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-core/src/main/java/org/springframework/util/MethodInvoker.java
@@ -65,7 +65,7 @@ public class MethodInvoker { * @see #setTargetObject * @see #setTargetMethod */ - public void setTargetClass(Class<?> targetClass) { + public void setTargetClass(@Nullable Class<?> targetClass) { this.targetClass = targetClass; } @@ -106,7 +106,7 @@ public Object getTargetObject() { ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-core/src/main/java/org/springframework/util/MultiValueMap.java
@@ -64,7 +64,7 @@ * @param key the key * @param value the value to set */ - void set(K key, V value); + void set(K key, @Nullable V value); /** * Set the given values under.
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-core/src/main/java/org/springframework/util/xml/AbstractXMLReader.java
@@ -41,19 +41,24 @@ */ abstract class AbstractXMLReader implements XMLReader { + @Nullable private DTDHandler dtdHandler; + @Nullable private ContentHandler contentHandler; + @Nullable private EntityResolver entityResolver; + @Nullable private ErrorHandler errorHandler; + @Nullable private Lexica...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataContext.java
@@ -143,7 +143,7 @@ public List<String> getOutParameterNames() { /** * Specify the name of the procedure. */ - public void setProcedureName(String procedureName) { + public void setProcedureName(@Nullable String procedureName) { this.procedureName = procedureName; } @@ -158,7 +158,7 @@ public String getP...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/TableMetaDataContext.java
@@ -75,7 +75,7 @@ public class TableMetaDataContext { /** * Set the name of the table for this context. */ - public void setTableName(String tableName) { + public void setTableName(@Nullable String tableName) { this.tableName = tableName; } @@ -90,7 +90,7 @@ public String getTableName() { /** * Set ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/AbstractJdbcCall.java
@@ -108,7 +108,7 @@ public JdbcTemplate getJdbcTemplate() { /** * Set the name of the stored procedure. */ - public void setProcedureName(String procedureName) { + public void setProcedureName(@Nullable String procedureName) { this.callMetaDataContext.setProcedureName(procedureName); } @@ -137,7 +137,7 @...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/AbstractJdbcInsert.java
@@ -119,7 +119,7 @@ public JdbcTemplate getJdbcTemplate() { /** * Set the name of the table for this insert. */ - public void setTableName(String tableName) { + public void setTableName(@Nullable String tableName) { checkIfConfigurationModificationIsAllowed(); this.tableMetaDataContext.setTableName(tableN...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jdbc/src/main/java/org/springframework/jdbc/core/support/JdbcDaoSupport.java
@@ -84,7 +84,7 @@ public final DataSource getDataSource() { * Set the JdbcTemplate for this DAO explicitly, * as an alternative to specifying a DataSource. */ - public final void setJdbcTemplate(JdbcTemplate jdbcTemplate) { + public final void setJdbcTemplate(@Nullable JdbcTemplate jdbcTemplate) { this.jdbc...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jdbc/src/main/java/org/springframework/jdbc/datasource/AbstractDriverBasedDataSource.java
@@ -57,7 +57,7 @@ public abstract class AbstractDriverBasedDataSource extends AbstractDataSource { * Set the JDBC URL to use for connecting through the Driver. * @see java.sql.Driver#connect(String, java.util.Properties) */ - public void setUrl(String url) { + public void setUrl(@Nullable String url) { Asse...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jdbc/src/main/java/org/springframework/jdbc/datasource/DataSourceTransactionManager.java
@@ -155,7 +155,7 @@ public DataSourceTransactionManager(DataSource dataSource) { * @see TransactionAwareDataSourceProxy * @see org.springframework.transaction.jta.JtaTransactionManager */ - public void setDataSource(DataSource dataSource) { + public void setDataSource(@Nullable DataSource dataSource) { if (...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jdbc/src/main/java/org/springframework/jdbc/datasource/DelegatingDataSource.java
@@ -40,6 +40,7 @@ */ public class DelegatingDataSource implements DataSource, InitializingBean { + @Nullable private DataSource targetDataSource; @@ -62,8 +63,7 @@ public DelegatingDataSource(DataSource targetDataSource) { /** * Set the target DataSource that this DataSource should delegate to. */ - ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jdbc/src/main/java/org/springframework/jdbc/support/AbstractFallbackSQLExceptionTranslator.java
@@ -38,14 +38,15 @@ public abstract class AbstractFallbackSQLExceptionTranslator implements SQLExcep /** Logger available to subclasses */ protected final Log logger = LogFactory.getLog(getClass()); + @Nullable private SQLExceptionTranslator fallbackTranslator; /** * Override the default SQL state fall...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jdbc/src/main/java/org/springframework/jdbc/support/CustomSQLErrorCodesTranslation.java
@@ -53,8 +53,8 @@ public String[] getErrorCodes() { /** * Set the exception class for the specified error codes. */ - public void setExceptionClass(Class<?> exceptionClass) { - if (!DataAccessException.class.isAssignableFrom(exceptionClass)) { + public void setExceptionClass(@Nullable Class<?> exceptionClass) ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jdbc/src/main/java/org/springframework/jdbc/support/JdbcAccessor.java
@@ -54,7 +54,7 @@ public abstract class JdbcAccessor implements InitializingBean { /** * Set the JDBC DataSource to obtain connections from. */ - public void setDataSource(DataSource dataSource) { + public void setDataSource(@Nullable DataSource dataSource) { this.dataSource = dataSource; }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLErrorCodeSQLExceptionTranslator.java
@@ -152,7 +152,7 @@ public void setDatabaseProductName(String dbName) { * Set custom error codes to be used for translation. * @param sec custom error codes to use */ - public void setSqlErrorCodes(SQLErrorCodes sec) { + public void setSqlErrorCodes(@Nullable SQLErrorCodes sec) { this.sqlErrorCodes = sec; ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jdbc/src/main/java/org/springframework/jdbc/support/SQLErrorCodes.java
@@ -71,7 +71,7 @@ public class SQLErrorCodes { * Set this property if the database name contains spaces, * in which case we can not use the bean name for lookup. */ - public void setDatabaseProductName(String databaseProductName) { + public void setDatabaseProductName(@Nullable String databaseProductName) { ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/config/JmsListenerEndpointRegistrar.java
@@ -63,7 +63,7 @@ public class JmsListenerEndpointRegistrar implements BeanFactoryAware, Initializ /** * Set the {@link JmsListenerEndpointRegistry} instance to use. */ - public void setEndpointRegistry(JmsListenerEndpointRegistry endpointRegistry) { + public void setEndpointRegistry(@Nullable JmsListenerEndpoi...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/config/MethodJmsListenerEndpoint.java
@@ -68,7 +68,7 @@ public class MethodJmsListenerEndpoint extends AbstractJmsListenerEndpoint imple /** * Set the actual bean instance to invoke this endpoint method on. */ - public void setBean(Object bean) { + public void setBean(@Nullable Object bean) { this.bean = bean; } @@ -80,7 +80,7 @@ public Obje...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/config/SimpleJmsListenerEndpoint.java
@@ -39,7 +39,7 @@ public class SimpleJmsListenerEndpoint extends AbstractJmsListenerEndpoint { * Set the {@link MessageListener} to invoke when a message matching * the endpoint is received. */ - public void setMessageListener(MessageListener messageListener) { + public void setMessageListener(@Nullable Messag...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/connection/DelegatingConnectionFactory.java
@@ -55,6 +55,7 @@ public class DelegatingConnectionFactory implements SmartConnectionFactory, QueueConnectionFactory, TopicConnectionFactory, InitializingBean { + @Nullable private ConnectionFactory targetConnectionFactory; private boolean shouldStopConnections = false; @@ -63,8 +64,7 @@ /** * Set the ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/connection/JmsTransactionManager.java
@@ -127,8 +127,8 @@ public JmsTransactionManager(ConnectionFactory connectionFactory) { /** * Set the JMS ConnectionFactory that this instance should manage transactions for. */ - public void setConnectionFactory(ConnectionFactory cf) { - if (cf instanceof TransactionAwareConnectionFactoryProxy) { + public voi...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/connection/SingleConnectionFactory.java
@@ -143,15 +143,15 @@ public SingleConnectionFactory(ConnectionFactory targetConnectionFactory) { * Set the target ConnectionFactory which will be used to lazily * create a single Connection. */ - public void setTargetConnectionFactory(ConnectionFactory targetConnectionFactory) { + public void setTargetConnect...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/connection/TransactionAwareConnectionFactoryProxy.java
@@ -81,6 +81,7 @@ private boolean synchedLocalTransactionAllowed = false; + @Nullable private ConnectionFactory targetConnectionFactory; @@ -102,8 +103,7 @@ public TransactionAwareConnectionFactoryProxy(ConnectionFactory targetConnection /** * Set the target ConnectionFactory that this ConnectionFactor...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/core/JmsMessagingTemplate.java
@@ -106,7 +106,7 @@ public ConnectionFactory getConnectionFactory() { /** * Set the {@link JmsTemplate} to use. */ - public void setJmsTemplate(JmsTemplate jmsTemplate) { + public void setJmsTemplate(@Nullable JmsTemplate jmsTemplate) { this.jmsTemplate = jmsTemplate; } @@ -147,7 +147,7 @@ public Message...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/core/JmsTemplate.java
@@ -92,6 +92,7 @@ public class JmsTemplate extends JmsDestinationAccessor implements JmsOperations private final JmsTemplateResourceFactory transactionalResourceFactory = new JmsTemplateResourceFactory(); + @Nullable private Object defaultDestination; private MessageConverter messageConverter; @@ -161,7 +16...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/core/support/JmsGatewaySupport.java
@@ -84,7 +84,7 @@ public final ConnectionFactory getConnectionFactory() { * Set the JmsTemplate for the gateway. * @see #setConnectionFactory(javax.jms.ConnectionFactory) */ - public final void setJmsTemplate(JmsTemplate jmsTemplate) { + public final void setJmsTemplate(@Nullable JmsTemplate jmsTemplate) { ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/listener/AbstractJmsListeningContainer.java
@@ -96,7 +96,7 @@ public abstract class AbstractJmsListeningContainer extends JmsDestinationAccess * @see javax.jms.Connection#setClientID * @see #setConnectionFactory */ - public void setClientId(String clientId) { + public void setClientId(@Nullable String clientId) { this.clientId = clientId; } @@ -1...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/listener/AbstractMessageListenerContainer.java
@@ -196,8 +196,7 @@ public abstract class AbstractMessageListenerContainer extends AbstractJmsListen * CACHE_CONSUMER). However, this is considered advanced usage; use it with care! * @see #setDestinationName(String) */ - public void setDestination(Destination destination) { - Assert.notNull(destination, "'de...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/listener/AbstractPollingMessageListenerContainer.java
@@ -123,7 +123,7 @@ public void setSessionTransacted(boolean sessionTransacted) { * @see org.springframework.transaction.jta.JtaTransactionManager * @see org.springframework.jms.connection.JmsTransactionManager */ - public void setTransactionManager(PlatformTransactionManager transactionManager) { + public voi...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/listener/adapter/AbstractAdaptableMessageListener.java
@@ -142,7 +142,7 @@ protected DestinationResolver getDestinationResolver() { * {@link javax.jms.TextMessage TextMessages} and * {@link javax.jms.ObjectMessage ObjectMessages}. */ - public void setMessageConverter(MessageConverter messageConverter) { + public void setMessageConverter(@Nullable MessageConverter ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/listener/endpoint/JmsActivationSpecConfig.java
@@ -78,7 +78,7 @@ public class JmsActivationSpecConfig { private MessageConverter messageConverter; - public void setDestinationName(String destinationName) { + public void setDestinationName(@Nullable String destinationName) { this.destinationName = destinationName; } @@ -108,7 +108,7 @@ public boolean is...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/listener/endpoint/JmsMessageEndpointManager.java
@@ -138,7 +138,7 @@ public void setDestinationResolver(DestinationResolver destinationResolver) { * <p>This config object will be turned into a concrete JCA 1.5 ActivationSpec * object through a {@link #setActivationSpecFactory JmsActivationSpecFactory}. */ - public void setActivationSpecConfig(JmsActivationSp...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/listener/endpoint/StandardJmsActivationSpecFactory.java
@@ -90,7 +90,7 @@ public void setDefaultProperties(Map<String, String> defaultProperties) { * or {@link org.springframework.jms.support.destination.BeanFactoryDestinationResolver} * but not {@link org.springframework.jms.support.destination.DynamicDestinationResolver}. */ - public void setDestinationResolver(D...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/remoting/JmsInvokerClientInterceptor.java
@@ -92,7 +92,7 @@ public class JmsInvokerClientInterceptor implements MethodInterceptor, Initializ /** * Set the QueueConnectionFactory to use for obtaining JMS QueueConnections. */ - public void setConnectionFactory(ConnectionFactory connectionFactory) { + public void setConnectionFactory(@Nullable ConnectionF...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/main/java/org/springframework/jms/support/JmsAccessor.java
@@ -54,6 +54,7 @@ public abstract class JmsAccessor implements InitializingBean { /** Logger available to subclasses */ protected final Log logger = LogFactory.getLog(getClass()); + @Nullable private ConnectionFactory connectionFactory; private boolean sessionTransacted = false; @@ -64,7 +65,7 @@ public abs...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-jms/src/test/java/org/springframework/jms/listener/AbstractMessageListenerContainerTests.java
@@ -16,6 +16,7 @@ package org.springframework.jms.listener; +import org.junit.Assert; import org.junit.Test; /** @@ -28,10 +29,10 @@ public abstract class AbstractMessageListenerContainerTests { protected abstract AbstractMessageListenerContainer getContainer(); - - @Test(expected = IllegalArgumentExcept...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/converter/MarshallingMessageConverter.java
@@ -92,7 +92,7 @@ public MarshallingMessageConverter(Marshaller marshaller) { /** * Set the {@link Marshaller} to be used by this message converter. */ - public void setMarshaller(Marshaller marshaller) { + public void setMarshaller(@Nullable Marshaller marshaller) { this.marshaller = marshaller; } @@ -1...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/core/AbstractDestinationResolvingMessagingTemplate.java
@@ -51,8 +51,7 @@ * require resolving a destination name will raise an {@link IllegalArgumentException}. * @param destinationResolver the destination resolver to use */ - public void setDestinationResolver(DestinationResolver<D> destinationResolver) { - Assert.notNull(destinationResolver, "'destinationResolve...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/core/AbstractMessageSendingTemplate.java
@@ -63,7 +63,7 @@ * a destination argument. If a default destination is not configured, send methods * without a destination argument will raise an exception if invoked. */ - public void setDefaultDestination(D defaultDestination) { + public void setDefaultDestination(@Nullable D defaultDestination) { this....
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/handler/invocation/AbstractMethodMessageHandler.java
@@ -96,6 +96,7 @@ private final HandlerMethodReturnValueHandlerComposite returnValueHandlers = new HandlerMethodReturnValueHandlerComposite(); + @Nullable private ApplicationContext applicationContext; private final Map<T, HandlerMethod> handlerMethods = new LinkedHashMap<>(64); @@ -211,7 +212,7 @@ public...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageHeaderAccessor.java
@@ -121,8 +121,7 @@ public SimpMessageType getMessageType() { return (SimpMessageType) getHeader(MESSAGE_TYPE_HEADER); } - public void setDestination(String destination) { - Assert.notNull(destination, "Destination must not be null"); + public void setDestination(@Nullable String destination) { setHeader(DES...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessagingTemplate.java
@@ -111,7 +111,7 @@ public long getSendTimeout() { * messages created through the {@code SimpMessagingTemplate}. * <p>By default, this property is not set. */ - public void setHeaderInitializer(MessageHeaderInitializer headerInitializer) { + public void setHeaderInitializer(@Nullable MessageHeaderInitializer h...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/SendToMethodReturnValueHandler.java
@@ -121,7 +121,7 @@ public String getDefaultUserDestinationPrefix() { * messages sent to the client outbound channel. * <p>By default this property is not set. */ - public void setHeaderInitializer(MessageHeaderInitializer headerInitializer) { + public void setHeaderInitializer(@Nullable MessageHeaderInitializ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/SimpAnnotationMethodMessageHandler.java
@@ -234,7 +234,7 @@ public Validator getValidator() { * @see org.springframework.validation.annotation.Validated * @see PayloadArgumentResolver */ - public void setValidator(Validator validator) { + public void setValidator(@Nullable Validator validator) { this.validator = validator; } @@ -249,7 +249,7 ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/SubscriptionMethodReturnValueHandler.java
@@ -63,6 +63,7 @@ public class SubscriptionMethodReturnValueHandler implements HandlerMethodReturn private final MessageSendingOperations<String> messagingTemplate; + @Nullable private MessageHeaderInitializer headerInitializer; @@ -82,7 +83,7 @@ public SubscriptionMethodReturnValueHandler(MessageSendingOpe...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/broker/AbstractBrokerMessageHandler.java
@@ -129,7 +129,7 @@ public Collection<String> getDestinationPrefixes() { } @Override - public void setApplicationEventPublisher(ApplicationEventPublisher publisher) { + public void setApplicationEventPublisher(@Nullable ApplicationEventPublisher publisher) { this.eventPublisher = publisher; }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/broker/SimpleBrokerMessageHandler.java
@@ -157,10 +157,9 @@ private void initCacheLimitToUse() { * <p>By default this is not set. * @since 4.2 */ - public void setTaskScheduler(TaskScheduler taskScheduler) { - Assert.notNull(taskScheduler, "TaskScheduler must not be null"); + public void setTaskScheduler(@Nullable TaskScheduler taskScheduler) { ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/config/AbstractMessageBrokerConfiguration.java
@@ -112,7 +112,7 @@ protected AbstractMessageBrokerConfiguration() { @Override - public void setApplicationContext(ApplicationContext applicationContext) { + public void setApplicationContext(@Nullable ApplicationContext applicationContext) { this.applicationContext = applicationContext; }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java
@@ -325,7 +325,7 @@ public Map<String, MessageHandler> getSystemSubscriptions() { * providing the cloud-based STOMP service. * <p>By default this property is not set. */ - public void setVirtualHost(String virtualHost) { + public void setVirtualHost(@Nullable String virtualHost) { this.virtualHost = virtual...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompClientSupport.java
@@ -43,6 +43,7 @@ public abstract class StompClientSupport { private MessageConverter messageConverter = new SimpleMessageConverter(); + @Nullable private TaskScheduler taskScheduler; private long[] defaultHeartbeat = new long[] {10000, 10000}; @@ -76,7 +77,7 @@ public MessageConverter getMessageConverter()...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompDecoder.java
@@ -61,7 +61,7 @@ public class StompDecoder { * Configure a {@link MessageHeaderInitializer} to apply to the headers of * {@link Message}s from decoded STOMP frames. */ - public void setHeaderInitializer(MessageHeaderInitializer headerInitializer) { + public void setHeaderInitializer(@Nullable MessageHeaderIni...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompHeaderAccessor.java
@@ -246,7 +246,7 @@ public Set<String> getAcceptVersion() { return (rawValue != null ? StringUtils.commaDelimitedListToSet(rawValue) : Collections.emptySet()); } - public void setHost(String host) { + public void setHost(@Nullable String host) { setNativeHeader(STOMP_HOST_HEADER, host); } @@ -302,7 +302,7...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompHeaders.java
@@ -126,10 +126,15 @@ private StompHeaders(Map<String, List<String>> headers, boolean readOnly) { * Set the content-type header. * Applies to the SEND, MESSAGE, and ERROR frames. */ - public void setContentType(MimeType mimeType) { - Assert.isTrue(!mimeType.isWildcardType(), "'Content-Type' cannot contain wil...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/simp/user/UserDestinationMessageHandler.java
@@ -108,7 +108,7 @@ public UserDestinationResolver getUserDestinationResolver() { * <p>By default this is not set. * @param destination the target destination. */ - public void setBroadcastDestination(String destination) { + public void setBroadcastDestination(@Nullable String destination) { this.broadcastH...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-messaging/src/main/java/org/springframework/messaging/support/IdTimestampMessageHeaderInitializer.java
@@ -43,7 +43,7 @@ public class IdTimestampMessageHeaderInitializer implements MessageHeaderInitial * IdGenerator of {@link org.springframework.messaging.MessageHeaders} is used. * <p>To have no id's generated at all, see {@link #setDisableIdGeneration()}. */ - public void setIdGenerator(IdGenerator idGenerator...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-orm/src/main/java/org/springframework/orm/hibernate5/HibernateTemplate.java
@@ -105,8 +105,10 @@ public class HibernateTemplate implements HibernateOperations, InitializingBean protected final Log logger = LogFactory.getLog(getClass()); + @Nullable private SessionFactory sessionFactory; + @Nullable private String[] filterNames; private boolean exposeNativeSession = false; @@ -1...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-orm/src/main/java/org/springframework/orm/hibernate5/HibernateTransactionManager.java
@@ -156,7 +156,7 @@ public HibernateTransactionManager(SessionFactory sessionFactory) { /** * Set the SessionFactory that this instance should manage transactions for. */ - public void setSessionFactory(SessionFactory sessionFactory) { + public void setSessionFactory(@Nullable SessionFactory sessionFactory) { ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-orm/src/main/java/org/springframework/orm/hibernate5/SessionHolder.java
@@ -57,7 +57,7 @@ public Session getSession() { return this.session; } - public void setTransaction(Transaction transaction) { + public void setTransaction(@Nullable Transaction transaction) { this.transaction = transaction; } @@ -66,7 +66,7 @@ public Transaction getTransaction() { return this.transact...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-orm/src/main/java/org/springframework/orm/hibernate5/support/HibernateDaoSupport.java
@@ -97,7 +97,7 @@ public final SessionFactory getSessionFactory() { * as an alternative to specifying a SessionFactory. * @see #setSessionFactory */ - public final void setHibernateTemplate(HibernateTemplate hibernateTemplate) { + public final void setHibernateTemplate(@Nullable HibernateTemplate hibernateTemp...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-orm/src/main/java/org/springframework/orm/hibernate5/support/OpenSessionInterceptor.java
@@ -50,13 +50,14 @@ */ public class OpenSessionInterceptor implements MethodInterceptor, InitializingBean { + @Nullable private SessionFactory sessionFactory; /** * Set the Hibernate SessionFactory that should be used to create Hibernate Sessions. */ - public void setSessionFactory(SessionFactory ses...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-orm/src/main/java/org/springframework/orm/jpa/AbstractEntityManagerFactoryBean.java
@@ -271,7 +271,7 @@ public JpaDialect getJpaDialect() { * such as persistence provider class and JpaDialect, unless locally * overridden in this FactoryBean. */ - public void setJpaVendorAdapter(JpaVendorAdapter jpaVendorAdapter) { + public void setJpaVendorAdapter(@Nullable JpaVendorAdapter jpaVendorAdapter) ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-orm/src/main/java/org/springframework/orm/jpa/EntityManagerFactoryAccessor.java
@@ -46,8 +46,10 @@ public abstract class EntityManagerFactoryAccessor implements BeanFactoryAware { /** Logger available to subclasses */ protected final Log logger = LogFactory.getLog(getClass()); + @Nullable private EntityManagerFactory entityManagerFactory; + @Nullable private String persistenceUnitName;...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-orm/src/main/java/org/springframework/orm/jpa/EntityManagerHolder.java
@@ -63,7 +63,7 @@ protected boolean isTransactionActive() { return this.transactionActive; } - protected void setSavepointManager(SavepointManager savepointManager) { + protected void setSavepointManager(@Nullable SavepointManager savepointManager) { this.savepointManager = savepointManager; }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-orm/src/main/java/org/springframework/orm/jpa/JpaTransactionManager.java
@@ -154,7 +154,7 @@ public JpaTransactionManager(EntityManagerFactory emf) { * single unique bean of type EntityManagerFactory in the containing BeanFactory. * @see #setPersistenceUnitName */ - public void setEntityManagerFactory(EntityManagerFactory emf) { + public void setEntityManagerFactory(@Nullable Entit...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-orm/src/main/java/org/springframework/orm/jpa/persistenceunit/DefaultPersistenceUnitManager.java
@@ -339,7 +339,7 @@ public DataSourceLookup getDataSourceLookup() { * none has been registered before. * @see javax.persistence.spi.PersistenceUnitInfo#getNonJtaDataSource() */ - public void setDefaultDataSource(DataSource defaultDataSource) { + public void setDefaultDataSource(@Nullable DataSource defaultData...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-orm/src/main/java/org/springframework/orm/jpa/persistenceunit/MutablePersistenceUnitInfo.java
@@ -85,7 +85,7 @@ public class MutablePersistenceUnitInfo implements SmartPersistenceUnitInfo { private String persistenceProviderPackageName; - public void setPersistenceUnitName(String persistenceUnitName) { + public void setPersistenceUnitName(@Nullable String persistenceUnitName) { this.persistenceUnitName...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-orm/src/main/java/org/springframework/orm/jpa/support/OpenEntityManagerInViewFilter.java
@@ -92,7 +92,7 @@ public class OpenEntityManagerInViewFilter extends OncePerRequestFilter { * @see #setPersistenceUnitName * @see #DEFAULT_ENTITY_MANAGER_FACTORY_BEAN_NAME */ - public void setEntityManagerFactoryBeanName(String entityManagerFactoryBeanName) { + public void setEntityManagerFactoryBeanName(@Null...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-orm/src/main/java/org/springframework/orm/jpa/vendor/AbstractJpaVendorAdapter.java
@@ -47,7 +47,7 @@ public abstract class AbstractJpaVendorAdapter implements JpaVendorAdapter { * Specify the target database to operate on, as a value of the {@code Database} enum: * DB2, DERBY, H2, HSQL, INFORMIX, MYSQL, ORACLE, POSTGRESQL, SQL_SERVER, SYBASE */ - public void setDatabase(Database database) { ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-oxm/src/main/java/org/springframework/oxm/jaxb/Jaxb2Marshaller.java
@@ -210,8 +210,7 @@ public void setContextPaths(String... contextPaths) { * <p>Setting either this property, {@link #setClassesToBeBound "classesToBeBound"} * or {@link #setPackagesToScan "packagesToScan"} is required. */ - public void setContextPath(String contextPath) { - Assert.hasText(contextPath, "'conte...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-oxm/src/main/java/org/springframework/oxm/support/MarshallingSource.java
@@ -108,14 +108,19 @@ private static class MarshallingXMLReader implements XMLReader { private final Object content; + @Nullable private DTDHandler dtdHandler; + @Nullable private ContentHandler contentHandler; + @Nullable private EntityResolver entityResolver; + @Nullable private ErrorHand...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-test/src/main/java/org/springframework/mock/web/HeaderValueHolder.java
@@ -39,9 +39,11 @@ class HeaderValueHolder { private final List<Object> values = new LinkedList<>(); - public void setValue(Object value) { + public void setValue(@Nullable Object value) { this.values.clear(); - this.values.add(value); + if (value != null) { + this.values.add(value); + } } public vo...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-test/src/main/java/org/springframework/mock/web/MockHttpServletRequest.java
@@ -917,7 +917,7 @@ public boolean isAsyncSupported() { return this.asyncSupported; } - public void setAsyncContext(MockAsyncContext asyncContext) { + public void setAsyncContext(@Nullable MockAsyncContext asyncContext) { this.asyncContext = asyncContext; } @@ -941,7 +941,7 @@ public DispatcherType getDis...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-test/src/main/java/org/springframework/mock/web/MockHttpServletResponse.java
@@ -642,7 +642,7 @@ public String getErrorMessage() { // Methods for MockRequestDispatcher //--------------------------------------------------------------------- - public void setForwardedUrl(String forwardedUrl) { + public void setForwardedUrl(@Nullable String forwardedUrl) { this.forwardedUrl = forwardedUrl...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-test/src/main/java/org/springframework/mock/web/MockServletContext.java
@@ -582,7 +582,7 @@ public int getSessionTimeout() { } // @Override - but only against Servlet 4.0 - public void setRequestCharacterEncoding(String requestCharacterEncoding) { + public void setRequestCharacterEncoding(@Nullable String requestCharacterEncoding) { this.requestCharacterEncoding = requestCharacter...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-test/src/main/java/org/springframework/test/web/servlet/DefaultMvcResult.java
@@ -76,7 +76,7 @@ public MockHttpServletResponse getResponse() { return this.mockResponse; } - public void setHandler(Object handler) { + public void setHandler(@Nullable Object handler) { this.handler = handler; }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-tx/src/main/java/org/springframework/jca/cci/connection/CciLocalTransactionManager.java
@@ -92,7 +92,7 @@ public CciLocalTransactionManager(ConnectionFactory connectionFactory) { * Set the CCI ConnectionFactory that this instance should manage local * transactions for. */ - public void setConnectionFactory(ConnectionFactory cf) { + public void setConnectionFactory(@Nullable ConnectionFactory cf) ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-tx/src/main/java/org/springframework/jca/cci/connection/DelegatingConnectionFactory.java
@@ -44,13 +44,14 @@ @SuppressWarnings("serial") public class DelegatingConnectionFactory implements ConnectionFactory, InitializingBean { + @Nullable private ConnectionFactory targetConnectionFactory; /** * Set the target ConnectionFactory that this ConnectionFactory should delegate to. */ - public vo...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-tx/src/main/java/org/springframework/jca/cci/core/CciTemplate.java
@@ -119,7 +119,7 @@ public CciTemplate(ConnectionFactory connectionFactory, @Nullable ConnectionSpec /** * Set the CCI ConnectionFactory to obtain Connections from. */ - public void setConnectionFactory(ConnectionFactory connectionFactory) { + public void setConnectionFactory(@Nullable ConnectionFactory connect...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-tx/src/main/java/org/springframework/jca/cci/object/EisOperation.java
@@ -71,7 +71,7 @@ public void setConnectionFactory(ConnectionFactory connectionFactory) { /** * Set the CCI InteractionSpec for this operation. */ - public void setInteractionSpec(InteractionSpec interactionSpec) { + public void setInteractionSpec(@Nullable InteractionSpec interactionSpec) { this.interaction...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-tx/src/main/java/org/springframework/jca/endpoint/GenericMessageEndpointManager.java
@@ -148,10 +148,13 @@ */ public class GenericMessageEndpointManager implements SmartLifecycle, InitializingBean, DisposableBean { + @Nullable private ResourceAdapter resourceAdapter; + @Nullable private MessageEndpointFactory messageEndpointFactory; + @Nullable private ActivationSpec activationSpec; ...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-tx/src/main/java/org/springframework/transaction/interceptor/DefaultTransactionAttribute.java
@@ -100,7 +100,7 @@ public String getQualifier() { * e.g. indicating where the attribute is applying. * @since 4.3.4 */ - public void setDescriptor(String descriptor) { + public void setDescriptor(@Nullable String descriptor) { this.descriptor = descriptor; }
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAspectSupport.java
@@ -148,7 +148,7 @@ public static TransactionStatus currentTransactionStatus() throws NoTransactionE /** * Specify the name of the default transaction manager bean. */ - public void setTransactionManagerBeanName(String transactionManagerBeanName) { + public void setTransactionManagerBeanName(@Nullable String tr...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-tx/src/main/java/org/springframework/transaction/jta/JtaTransactionManager.java
@@ -249,7 +249,7 @@ public JndiTemplate getJndiTemplate() { * Creates a JndiTemplate with the given environment settings. * @see #setJndiTemplate */ - public void setJndiEnvironment(Properties jndiEnvironment) { + public void setJndiEnvironment(@Nullable Properties jndiEnvironment) { this.jndiTemplate = new...
true
Other
spring-projects
spring-framework
fb4ddb0746a3f194091043de328875596736427a.json
Make getters and setters null-safety consistent This commit ensure that null-safety is consistent between getters and setters in order to be able to provide beans with properties with a common type when type safety is taken in account like with Kotlin. It also add a few missing property level @Nullable annotations. ...
spring-tx/src/main/java/org/springframework/transaction/support/TransactionTemplate.java
@@ -105,7 +105,7 @@ public TransactionTemplate(PlatformTransactionManager transactionManager, Transa /** * Set the transaction management strategy to be used. */ - public void setTransactionManager(PlatformTransactionManager transactionManager) { + public void setTransactionManager(@Nullable PlatformTransaction...
true