2 Replies Latest reply on Jan 13, 2010 5:33 AM by Ales Justin

    MutableAttachments.addAttachment is counter-intuitive

    Carlo de Wolf Master

      The MutableAttachments API defines a lot of addAttachment functions, which should actually be named setAttachment.

      Because I'm not adding (another) attachment named <name>, but overriding any previous attachment named <name> with a new one. Alternatively it could be called putAttachment (in line with the Map API).