orpiske commented on code in PR #22303:
URL: https://github.com/apache/camel/pull/22303#discussion_r3009522974
##########
components/camel-mail/src/main/java/org/apache/camel/component/mail/MailConverters.java:
##########
@@ -85,11 +84,11 @@ public static String toString(Multipart multipart) throws
MessagingException, IO
for (int i = 0; i < size; i++) {
BodyPart part = multipart.getBodyPart(i);
Object content = part.getContent();
- while (content instanceof MimeMultipart) {
- if (multipart.getCount() < 1) {
+ while (content instanceof MimeMultipart mimeMultipart) {
+ if (mimeMultipart.getCount() < 1) {
Review Comment:
This is a bad practice, let's have this fix as a separate PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]