The assumption here is that the number of attachments are small enough to justify linear search in {@link #get(String)}. @author Kohsuke Kawaguchi
218219220221222223224225226
* Gets the attachments of this message * (attachments live outside a message.) */ public @NotNull AttachmentSet getAttachments() { if (attachmentSet == null) { attachmentSet = new AttachmentSetImpl(); } return attachmentSet; }