Add more @Nullable parameters based on null usage
Issue: SPR-15540
This commit is contained in:
@@ -404,7 +404,7 @@ public class JavaMailSenderImpl implements JavaMailSender {
|
||||
* @throws org.springframework.mail.MailSendException
|
||||
* in case of failure when sending a message
|
||||
*/
|
||||
protected void doSend(MimeMessage[] mimeMessages, Object[] originalMessages) throws MailException {
|
||||
protected void doSend(MimeMessage[] mimeMessages, @Nullable Object[] originalMessages) throws MailException {
|
||||
Map<Object, Exception> failedMessages = new LinkedHashMap<>();
|
||||
Transport transport = null;
|
||||
|
||||
|
||||
@@ -362,7 +362,7 @@ public class MimeMessageHelper {
|
||||
* will be added to (can be the same as the root multipart object, or an element
|
||||
* nested underneath the root multipart element)
|
||||
*/
|
||||
protected final void setMimeMultiparts(@Nullable MimeMultipart root, MimeMultipart main) {
|
||||
protected final void setMimeMultiparts(@Nullable MimeMultipart root, @Nullable MimeMultipart main) {
|
||||
this.rootMimeMultipart = root;
|
||||
this.mimeMultipart = main;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ import org.quartz.xml.XMLSchedulingDataProcessor;
|
||||
|
||||
import org.springframework.context.ResourceLoaderAware;
|
||||
import org.springframework.core.io.ResourceLoader;
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.springframework.transaction.PlatformTransactionManager;
|
||||
import org.springframework.transaction.TransactionException;
|
||||
import org.springframework.transaction.TransactionStatus;
|
||||
@@ -186,7 +187,7 @@ public abstract class SchedulerAccessor implements ResourceLoaderAware {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setResourceLoader(ResourceLoader resourceLoader) {
|
||||
public void setResourceLoader(@Nullable ResourceLoader resourceLoader) {
|
||||
this.resourceLoader = resourceLoader;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user