james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1059946 - in /james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message: BodyPart.java MaximalBodyDescriptor.java MessageImpl.java MultipartImpl.java
Date Mon, 17 Jan 2011 15:12:24 GMT
Author: olegk
Date: Mon Jan 17 15:12:23 2011
New Revision: 1059946

URL: http://svn.apache.org/viewvc?rev=1059946&view=rev
Log:
Added missing Override annotations

Modified:
    james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/BodyPart.java
    james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MaximalBodyDescriptor.java
    james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MessageImpl.java
    james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MultipartImpl.java

Modified: james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/BodyPart.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/BodyPart.java?rev=1059946&r1=1059945&r2=1059946&view=diff
==============================================================================
--- james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/BodyPart.java
(original)
+++ james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/BodyPart.java
Mon Jan 17 15:12:23 2011
@@ -79,6 +79,7 @@ public class BodyPart extends EntityBase
 		return MimeUtil.createUniqueBoundary();
 	}
 
+    @Override
     protected ContentDispositionField newContentDisposition(
             String dispositionType, String filename, long size,
             Date creationDate, Date modificationDate, Date readDate) {
@@ -86,29 +87,35 @@ public class BodyPart extends EntityBase
                 creationDate, modificationDate, readDate);
     }
 
+    @Override
     protected ContentDispositionField newContentDisposition(
             String dispositionType, Map<String, String> parameters) {
         return Fields.contentDisposition(dispositionType, parameters);
     }
 
+    @Override
     protected ContentTypeField newContentType(String mimeType,
             Map<String, String> parameters) {
         return Fields.contentType(mimeType, parameters);
     }
 
+    @Override
     protected ContentTransferEncodingField newContentTransferEncoding(
             String contentTransferEncoding) {
         return Fields.contentTransferEncoding(contentTransferEncoding);
     }
 
+    @Override
     protected String calcTransferEncoding(ContentTransferEncodingField f) {
         return ContentTransferEncodingFieldImpl.getEncoding(f);
     }
 
+    @Override
     protected String calcMimeType(ContentTypeField child, ContentTypeField parent) {
         return ContentTypeFieldImpl.getMimeType(child, parent);
     }
 
+    @Override
     protected String calcCharset(ContentTypeField contentType) {
         return ContentTypeFieldImpl.getCharset(contentType); 
     }

Modified: james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MaximalBodyDescriptor.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MaximalBodyDescriptor.java?rev=1059946&r1=1059945&r2=1059946&view=diff
==============================================================================
--- james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MaximalBodyDescriptor.java
(original)
+++ james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MaximalBodyDescriptor.java
Mon Jan 17 15:12:23 2011
@@ -108,6 +108,7 @@ public class MaximalBodyDescriptor exten
         this.isContentMD5Set = false;
     }
 
+    @Override
     public MutableBodyDescriptor newChild() {
         return new MaximalBodyDescriptor(this, getDecodeMonitor());
     }

Modified: james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MessageImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MessageImpl.java?rev=1059946&r1=1059945&r2=1059946&view=diff
==============================================================================
--- james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MessageImpl.java
(original)
+++ james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MessageImpl.java
Mon Jan 17 15:12:23 2011
@@ -223,32 +223,39 @@ public class MessageImpl extends Message
         return MimeUtil.createUniqueBoundary();
     }
 
+    @Override
     protected UnstructuredField newMessageId(String hostname) {
         return Fields.messageId(hostname);
     }
 
+    @Override
     protected DateTimeField newDate(Date date, TimeZone zone) {
         return Fields.date(FieldName.DATE, date, zone);
     }
 
+    @Override
     protected MailboxField newMailbox(String fieldName, Mailbox mailbox) {
         return Fields.mailbox(fieldName, mailbox);
     }
 
+    @Override
     protected MailboxListField newMailboxList(String fieldName,
             Collection<Mailbox> mailboxes) {
         return Fields.mailboxList(fieldName, mailboxes);
     }
 
+    @Override
     protected AddressListField newAddressList(String fieldName,
             Collection<Address> addresses) {
         return Fields.addressList(fieldName, addresses);
     }
 
+    @Override
     protected UnstructuredField newSubject(String subject) {
         return Fields.subject(subject);
     }
 
+    @Override
     protected ContentDispositionField newContentDisposition(
             String dispositionType, String filename, long size,
             Date creationDate, Date modificationDate, Date readDate) {
@@ -256,29 +263,35 @@ public class MessageImpl extends Message
                 creationDate, modificationDate, readDate);
     }
 
+    @Override
     protected ContentDispositionField newContentDisposition(
             String dispositionType, Map<String, String> parameters) {
         return Fields.contentDisposition(dispositionType, parameters);
     }
 
+    @Override
     protected ContentTypeField newContentType(String mimeType,
             Map<String, String> parameters) {
         return Fields.contentType(mimeType, parameters);
     }
 
+    @Override
     protected ContentTransferEncodingField newContentTransferEncoding(
             String contentTransferEncoding) {
         return Fields.contentTransferEncoding(contentTransferEncoding);
     }
 
+    @Override
     protected String calcTransferEncoding(ContentTransferEncodingField f) {
         return ContentTransferEncodingFieldImpl.getEncoding(f);
     }
 
+    @Override
     protected String calcMimeType(ContentTypeField child, ContentTypeField parent) {
         return ContentTypeFieldImpl.getMimeType(child, parent);
     }
 
+    @Override
     protected String calcCharset(ContentTypeField contentType) {
         return ContentTypeFieldImpl.getCharset(contentType); 
     }

Modified: james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MultipartImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MultipartImpl.java?rev=1059946&r1=1059945&r2=1059946&view=diff
==============================================================================
--- james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MultipartImpl.java
(original)
+++ james/mime4j/branches/dom-api-refactoring/dom/src/main/java/org/apache/james/mime4j/message/MultipartImpl.java
Mon Jan 17 15:12:23 2011
@@ -110,6 +110,7 @@ public class MultipartImpl extends Multi
      * 
      * @return the preamble.
      */
+    @Override
     public String getPreamble() {
         if (!preambleComputed) {
             preambleStrCache = preamble != null ? ContentUtil.decode(preamble) : null;
@@ -124,6 +125,7 @@ public class MultipartImpl extends Multi
      * @param preamble
      *            the preamble.
      */
+    @Override
     public void setPreamble(String preamble) {
         this.preamble = preamble != null ? ContentUtil.encode(preamble) : null;
         this.preambleStrCache = preamble;
@@ -146,6 +148,7 @@ public class MultipartImpl extends Multi
      * 
      * @return the epilogue.
      */
+    @Override
     public String getEpilogue() {
         if (!epilogueComputed) {
             epilogueStrCache = epilogue != null ? ContentUtil.decode(epilogue) : null;
@@ -160,6 +163,7 @@ public class MultipartImpl extends Multi
      * @param epilogue
      *            the epilogue.
      */
+    @Override
     public void setEpilogue(String epilogue) {
         this.epilogue = epilogue != null ? ContentUtil.encode(epilogue) : null;
         this.epilogueStrCache = epilogue;



Mime
View raw message