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