< prev index next >
jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/MessageImpl.java
Print this page
*** 85,95 ****
protected SOAPPartImpl soapPartImpl;
protected FinalArrayList<AttachmentPart> attachments;
protected boolean saved = false;
protected byte[] messageBytes;
protected int messageByteCount;
! protected HashMap properties = new HashMap();
// used for lazy attachment initialization
protected MimeMultipart multiPart = null;
protected boolean attachmentsInitialized = false;
--- 85,95 ----
protected SOAPPartImpl soapPartImpl;
protected FinalArrayList<AttachmentPart> attachments;
protected boolean saved = false;
protected byte[] messageBytes;
protected int messageByteCount;
! protected Map<String, Object> properties = new HashMap<>();
// used for lazy attachment initialization
protected MimeMultipart multiPart = null;
protected boolean attachmentsInitialized = false;
*** 881,901 ****
this.optimizeAttachmentProcessing = true;
} catch (Exception e) {
throw new RuntimeException(e);
}
if (attachments == null)
! attachments = new FinalArrayList<AttachmentPart>();
attachments.add(attachment);
needsSave();
}
! static private final Iterator nullIter = Collections.EMPTY_LIST.iterator();
@Override
! public Iterator getAttachments() {
try {
initializeAllAttachments();
} catch (Exception e) {
throw new RuntimeException(e);
}
--- 881,901 ----
this.optimizeAttachmentProcessing = true;
} catch (Exception e) {
throw new RuntimeException(e);
}
if (attachments == null)
! attachments = new FinalArrayList<>();
attachments.add(attachment);
needsSave();
}
! static private final Iterator<AttachmentPart> nullIter = Collections.<AttachmentPart>EMPTY_LIST.iterator();
@Override
! public Iterator<AttachmentPart> getAttachments() {
try {
initializeAllAttachments();
} catch (Exception e) {
throw new RuntimeException(e);
}
*** 961,971 ****
iter.remove();
}
}
@Override
! public Iterator getAttachments(MimeHeaders headers) {
try {
initializeAllAttachments();
} catch (Exception e) {
throw new RuntimeException(e);
}
--- 961,971 ----
iter.remove();
}
}
@Override
! public Iterator<AttachmentPart> getAttachments(MimeHeaders headers) {
try {
initializeAllAttachments();
} catch (Exception e) {
throw new RuntimeException(e);
}
< prev index next >