-
Notifications
You must be signed in to change notification settings - Fork 1.1k
spring-integration-mail minor changes #9948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
mjd507
commented
Apr 11, 2025
- use pattern matching for instanceof
- polish unit tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contribution!
I'll look into this shortly.
Meanwhile, please, make sure you follow our Checkstyle rules:
Error: eckstyle] [ERROR] /home/runner/work/spring-integration/spring-integration/spring-integration-mail/src/test/java/org/springframework/integration/mail/config/PollingMailSourceParserTests.java:21:1: 'jakarta.mail.URLName' should be separated from previous imports. [ImportOrder]
Error: eckstyle] [ERROR] /home/runner/work/spring-integration/spring-integration/spring-integration-mail/src/test/java/org/springframework/integration/mail/config/PollingMailSourceParserTests.java:25:1: 'org.springframework.beans.DirectFieldAccessor' should be separated from previous imports. [ImportOrder]
> Task :spring-integration-mail:checkstyleTest
Error: eckstyle] [ERROR] /home/runner/work/spring-integration/spring-integration/spring-integration-mail/src/test/java/org/springframework/integration/mail/config/PollingMailSourceParserTests.java:36:58: Using a static member import should be avoided - org.junit.jupiter.params.provider.Arguments.arguments. [AvoidStaticImport]
Error: eckstyle] [ERROR] /home/runner/work/spring-integration/spring-integration/spring-integration-mail/src/test/java/org/springframework/integration/mail/config/MessageWithContentTypeTests.java:22:1: 'jakarta.mail.Session' should be separated from previous imports. [ImportOrder]
Error: eckstyle] [ERROR] /home/runner/work/spring-integration/spring-integration/spring-integration-mail/src/test/java/org/springframework/integration/mail/config/MessageWithContentTypeTests.java:26:1: 'org.springframework.integration.mail.MailHeaders' should be separated from previous imports. [ImportOrder]
Error: eckstyle] [ERROR] /home/runner/work/spring-integration/spring-integration/spring-integration-mail/src/test/java/org/springframework/integration/mail/ImapMailReceiverTests.java:36:1: 'com.icegreen.greenmail.user.GreenMailUser' should be separated from previous imports. [ImportOrder]
Error: eckstyle] [ERROR] /home/runner/work/spring-integration/spring-integration/spring-integration-mail/src/test/java/org/springframework/integration/mail/ImapMailReceiverTests.java:65:1: 'org.springframework.beans.DirectFieldAccessor' should be separated from previous imports. [ImportOrder]
That easy to check locally before pushing changes: gradlew :spring-integration-mail:check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some review on lines.
Thanks
...ation-mail/src/main/java/org/springframework/integration/mail/MailSendingMessageHandler.java
Outdated
Show resolved
Hide resolved
...ation-mail/src/main/java/org/springframework/integration/mail/MailSendingMessageHandler.java
Outdated
Show resolved
Hide resolved
...tegration-mail/src/test/java/org/springframework/integration/mail/ImapMailReceiverTests.java
Outdated
Show resolved
Hide resolved
...tegration-mail/src/test/java/org/springframework/integration/mail/ImapMailReceiverTests.java
Outdated
Show resolved
Hide resolved
can suggest below test error for core, in my local, it passed. can we re-trigger the build process?
|
1. use pattern matching for instanceof 2. polish unit tests Signed-off-by: Ma,Jiandong <[email protected]>
re submitted without change anything, now build pass :) |
@mjd507 , thank you for contribution; looking forward for more! |
thank you for such a quick review ❤️ |