Return-Path: X-Original-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D186A7F6C for ; Thu, 29 Dec 2011 12:33:34 +0000 (UTC) Received: (qmail 20349 invoked by uid 500); 29 Dec 2011 12:33:34 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 20304 invoked by uid 500); 29 Dec 2011 12:33:34 -0000 Mailing-List: contact mime4j-dev-help@james.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mime4j-dev@james.apache.org Delivered-To: mailing list mime4j-dev@james.apache.org Received: (qmail 20296 invoked by uid 99); 29 Dec 2011 12:33:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2011 12:33:34 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2011 12:33:31 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 684282388A2C; Thu, 29 Dec 2011 12:33:09 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1225507 - in /james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j: dom/Message.java field/Fields.java message/AbstractMessage.java message/MessageImpl.java Date: Thu, 29 Dec 2011 12:33:09 -0000 To: mime4j-dev@james.apache.org From: olegk@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111229123309.684282388A2C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: olegk Date: Thu Dec 29 12:33:08 2011 New Revision: 1225507 URL: http://svn.apache.org/viewvc?rev=1225507&view=rev Log: Fixed the use of generic collection parameters in Message and related classes Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/Message.java james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/Fields.java james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/AbstractMessage.java james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageImpl.java Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/Message.java URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/Message.java?rev=1225507&r1=1225506&r2=1225507&view=diff ============================================================================== --- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/Message.java (original) +++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/dom/Message.java Thu Dec 29 12:33:08 2011 @@ -199,7 +199,7 @@ public interface Message extends Entity, * addresses to set or null or an empty collection * to remove the header field. */ - void setTo(Collection
to); + void setTo(Collection to); /** * Returns the value of the Cc header field of this message as @@ -238,7 +238,7 @@ public interface Message extends Entity, * addresses to set or null or an empty collection * to remove the header field. */ - void setCc(Collection
cc); + void setCc(Collection cc); /** * Returns the value of the Bcc header field of this message as @@ -277,7 +277,7 @@ public interface Message extends Entity, * addresses to set or null or an empty collection * to remove the header field. */ - void setBcc(Collection
bcc); + void setBcc(Collection bcc); /** * Returns the value of the Reply-To header field of this message as @@ -316,6 +316,6 @@ public interface Message extends Entity, * addresses to set or null or an empty collection * to remove the header field. */ - void setReplyTo(Collection
replyTo); + void setReplyTo(Collection replyTo); } Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/Fields.java URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/Fields.java?rev=1225507&r1=1225506&r2=1225507&view=diff ============================================================================== --- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/Fields.java (original) +++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/field/Fields.java Thu Dec 29 12:33:08 2011 @@ -561,7 +561,7 @@ public class Fields { * @return the newly created address-list field. */ public static AddressListField addressList(String fieldName, - Iterable
addresses) { + Iterable addresses) { checkValidFieldName(fieldName); return addressList0(fieldName, addresses); } @@ -584,7 +584,7 @@ public class Fields { } private static AddressListField addressList0(String fieldName, - Iterable
addresses) { + Iterable addresses) { String fieldValue = encodeAddresses(addresses); return parse(AddressListFieldImpl.PARSER, fieldName, fieldValue); } Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/AbstractMessage.java URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/AbstractMessage.java?rev=1225507&r1=1225506&r2=1225507&view=diff ============================================================================== --- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/AbstractMessage.java (original) +++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/AbstractMessage.java Thu Dec 29 12:33:08 2011 @@ -271,7 +271,7 @@ public abstract class AbstractMessage ex * addresses to set or null or an empty collection * to remove the header field. */ - public void setTo(Collection
to) { + public void setTo(Collection to) { setAddressList(FieldName.TO, to); } @@ -318,7 +318,7 @@ public abstract class AbstractMessage ex * addresses to set or null or an empty collection * to remove the header field. */ - public void setCc(Collection
cc) { + public void setCc(Collection cc) { setAddressList(FieldName.CC, cc); } @@ -365,7 +365,7 @@ public abstract class AbstractMessage ex * addresses to set or null or an empty collection * to remove the header field. */ - public void setBcc(Collection
bcc) { + public void setBcc(Collection bcc) { setAddressList(FieldName.BCC, bcc); } @@ -412,7 +412,7 @@ public abstract class AbstractMessage ex * addresses to set or null or an empty collection * to remove the header field. */ - public void setReplyTo(Collection
replyTo) { + public void setReplyTo(Collection replyTo) { setAddressList(FieldName.REPLY_TO, replyTo); } @@ -480,7 +480,7 @@ public abstract class AbstractMessage ex .asList(addresses)); } - private void setAddressList(String fieldName, Collection
addresses) { + private void setAddressList(String fieldName, Collection addresses) { Header header = obtainHeader(); if (addresses == null || addresses.isEmpty()) { @@ -490,7 +490,7 @@ public abstract class AbstractMessage ex } } - protected abstract AddressListField newAddressList(String fieldName, Collection
addresses); + protected abstract AddressListField newAddressList(String fieldName, Collection addresses); protected abstract UnstructuredField newSubject(String subject); Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageImpl.java URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageImpl.java?rev=1225507&r1=1225506&r2=1225507&view=diff ============================================================================== --- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageImpl.java (original) +++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageImpl.java Thu Dec 29 12:33:08 2011 @@ -88,7 +88,7 @@ public class MessageImpl extends Abstrac @Override protected AddressListField newAddressList(String fieldName, - Collection
addresses) { + Collection addresses) { return Fields.addressList(fieldName, addresses); }