Toggle navigation
Home
org.apache.james.mailbox.model.MessageAttachment to java.util.Optional<org.apache.james.mailbox.model.MessageAttachment>
No. of Instances - 2
No. of Commits - 1
No. of Projects - {'james-project'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Internal -> Jdk
Mapping:
Rename Method invocation
attachments.stream().map(Throwing.function(toMessageAttachment).sneakyThrow())
to
attachments.stream().map(Throwing.function(toMessageAttachment).sneakyThrow()).flatMap(OptionalConverter::toStream)
Other
MessageAttachment.builder().attachment(attachmentManager.getAttachment(AttachmentId.from(attachment.getBlobId().getRawValue()),session)).name(attachment.getName().orElse(null)).cid(attachment.getCid().map(Cid::from).orElse(null)).isInline(attachment.isIsInline()).build()
to
MessageAttachment.builder().attachment(attachmentManager.getAttachment(AttachmentId.from(attachment.getBlobId().getRawValue()),session)).name(attachment.getName().orElse(null)).cid(attachment.getCid().map(Cid::from).orElse(null)).isInline(attachment.isIsInline()).build()