From 863628cce3f4dd7870dfa983cc628e4e9527baec Mon Sep 17 00:00:00 2001 From: Baqirrizvidev <114152937+Baqirrizvidev@users.noreply.github.com> Date: Fri, 22 May 2026 12:05:01 +0530 Subject: [PATCH] fix: correct log, Javadoc, and documentation grammar in SES and SQS --- docs/src/main/asciidoc/ses.adoc | 2 +- docs/src/main/asciidoc/sqs.adoc | 2 +- .../io/awspring/cloud/ses/SimpleEmailServiceJavaMailSender.java | 2 +- .../io/awspring/cloud/ses/SimpleEmailServiceMailSender.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/main/asciidoc/ses.adoc b/docs/src/main/asciidoc/ses.adoc index 404f325e71..a77897c56b 100644 --- a/docs/src/main/asciidoc/ses.adoc +++ b/docs/src/main/asciidoc/ses.adoc @@ -59,7 +59,7 @@ class MailSendingService { Sending attachments with e-mail or HTML e-mails requires MIME messages to be created and sent. In order to create MIME messages, the Java Mail API dependency and an implementation need to be in the classpath. Spring Cloud AWS will detect the -dependency and create a `org.springframework.mail.javamail.JavaMailSender` implementation that allows to create and +dependency and create a `org.springframework.mail.javamail.JavaMailSender` implementation that allows you to create and build MIME messages and send them. Dependencies for the Java Mail API and an implementation are the only needed configuration changes as shown below. [source,xml,indent=0] diff --git a/docs/src/main/asciidoc/sqs.adoc b/docs/src/main/asciidoc/sqs.adoc index 9b69146b08..5dc80e767e 100644 --- a/docs/src/main/asciidoc/sqs.adoc +++ b/docs/src/main/asciidoc/sqs.adoc @@ -1259,7 +1259,7 @@ MessageListenerContainer listenerContainer(SqsAsyncClient sqsAsyncClient } ---- -NOTE: The `SqsMessageListenerContainer.builder()` allows to specify the `SmartLifecycle.phase`, to override the default value defined in `MessageListenerContainer.DEFAULT_PHASE` +NOTE: The `SqsMessageListenerContainer.builder()` allows you to specify the `SmartLifecycle.phase`, to override the default value defined in `MessageListenerContainer.DEFAULT_PHASE` ===== Retrieving Containers from the Registry diff --git a/spring-cloud-aws-ses/src/main/java/io/awspring/cloud/ses/SimpleEmailServiceJavaMailSender.java b/spring-cloud-aws-ses/src/main/java/io/awspring/cloud/ses/SimpleEmailServiceJavaMailSender.java index fc46ad79bf..ea933ecded 100644 --- a/spring-cloud-aws-ses/src/main/java/io/awspring/cloud/ses/SimpleEmailServiceJavaMailSender.java +++ b/spring-cloud-aws-ses/src/main/java/io/awspring/cloud/ses/SimpleEmailServiceJavaMailSender.java @@ -47,7 +47,7 @@ import software.amazon.awssdk.services.ses.model.SendRawEmailResponse; /** - * {@link JavaMailSender} implementation that allows to send {@link MimeMessage} using the Simple E-Mail Service. In + * {@link JavaMailSender} implementation that allows sending {@link MimeMessage} using the Simple E-Mail Service. In * contrast to {@link SimpleEmailServiceMailSender} this class also allows the use of attachment and other mime parts * inside mail messages. * diff --git a/spring-cloud-aws-ses/src/main/java/io/awspring/cloud/ses/SimpleEmailServiceMailSender.java b/spring-cloud-aws-ses/src/main/java/io/awspring/cloud/ses/SimpleEmailServiceMailSender.java index 12bcfd06c2..ec26b324a8 100644 --- a/spring-cloud-aws-ses/src/main/java/io/awspring/cloud/ses/SimpleEmailServiceMailSender.java +++ b/spring-cloud-aws-ses/src/main/java/io/awspring/cloud/ses/SimpleEmailServiceMailSender.java @@ -92,7 +92,7 @@ public void send(SimpleMailMessage... simpleMessages) throws MailException { try { SendEmailResponse sendEmailResult = getEmailService().sendEmail(prepareMessage(simpleMessage)); if (LOGGER.isDebugEnabled()) { - LOGGER.debug("Message with id: {} successfully send", sendEmailResult.messageId()); + LOGGER.debug("Message with id: {} successfully sent", sendEmailResult.messageId()); } } catch (SesException e) {