Skip to content

Commit f42f1dd

Browse files
scordiofmbenhassine
authored andcommitted
Fix typo in SimpleMailMessageItemWriter Javadoc
1 parent 7f13c53 commit f42f1dd

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

spring-batch-infrastructure/src/main/java/org/springframework/batch/item/mail/SimpleMailMessageItemWriter.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2010 the original author or authors.
2+
* Copyright 2006-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -35,24 +35,24 @@
3535
* transactional, failures should be dealt with here if possible rather than
3636
* allowing them to be rethrown (which is the default).
3737
* </p>
38-
*
38+
*
3939
* <p>
4040
* Delegates the actual sending of messages to a {@link MailSender}, using the
4141
* batch method {@link MailSender#send(SimpleMailMessage[])}, which normally
4242
* uses a single server connection for the whole batch (depending on the
43-
* implementation). The efficiency of for large volumes of messages (repeated
43+
* implementation). The efficiency for large volumes of messages (repeated
4444
* calls to the item writer) might be improved by the use of a special
4545
* {@link MailSender} that caches connections to the server in between calls.
4646
* </p>
47-
*
47+
*
4848
* <p>
4949
* Stateless, so automatically restartable.
5050
* </p>
51-
*
51+
*
5252
* @author Dave Syer
53-
*
53+
*
5454
* @since 2.1
55-
*
55+
*
5656
*/
5757
public class SimpleMailMessageItemWriter implements ItemWriter<SimpleMailMessage>, InitializingBean {
5858

@@ -62,7 +62,7 @@ public class SimpleMailMessageItemWriter implements ItemWriter<SimpleMailMessage
6262

6363
/**
6464
* A {@link MailSender} to be used to send messages in {@link #write(List)}.
65-
*
65+
*
6666
* @param mailSender The {@link MailSender} to be used.
6767
*/
6868
public void setMailSender(MailSender mailSender) {
@@ -72,7 +72,7 @@ public void setMailSender(MailSender mailSender) {
7272
/**
7373
* The handler for failed messages. Defaults to a
7474
* {@link DefaultMailErrorHandler}.
75-
*
75+
*
7676
* @param mailErrorHandler the mail error handler to set
7777
*/
7878
public void setMailErrorHandler(MailErrorHandler mailErrorHandler) {
@@ -81,9 +81,9 @@ public void setMailErrorHandler(MailErrorHandler mailErrorHandler) {
8181

8282
/**
8383
* Check mandatory properties (mailSender).
84-
*
84+
*
8585
* @throws IllegalStateException if the mandatory properties are not set
86-
*
86+
*
8787
* @see InitializingBean#afterPropertiesSet()
8888
*/
8989
@Override

0 commit comments

Comments
 (0)