commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From quint...@apache.org
Subject cvs commit: jakarta-commons-sandbox/email/src/java/org/apache/commons/mail SimpleEmail.java
Date Fri, 07 Mar 2003 16:34:33 GMT
quintonm    2003/03/07 08:34:33

  Modified:    email/src/java/org/apache/commons/mail SimpleEmail.java
  Log:
  - Removed the default constructor.
  - setMsg no longer declares MessagingException to be thrown
  
  Revision  Changes    Path
  1.3       +4 -20     jakarta-commons-sandbox/email/src/java/org/apache/commons/mail/SimpleEmail.java
  
  Index: SimpleEmail.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/email/src/java/org/apache/commons/mail/SimpleEmail.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SimpleEmail.java	19 Jan 2003 20:06:17 -0000	1.2
  +++ SimpleEmail.java	7 Mar 2003 16:34:33 -0000	1.3
  @@ -53,13 +53,11 @@
    */
   package org.apache.commons.mail;
   
  -import javax.mail.MessagingException;
  -import javax.mail.internet.MimeMessage;
  -
   /**
    * This class is used to send simple internet email messages without
    * attachments.
    *
  + * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a>
    * @author <a href="mailto:colin.chalmers@maxware.nl">Colin Chalmers</a>
    * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
    * @author <a href="mailto:frank.kim@clearink.com">Frank Y. Kim</a>
  @@ -67,29 +65,15 @@
    * @author <a href="mailto:unknown">Regis Koenig</a>
    * @version $Id$
    */
  -public class SimpleEmail 
  -    extends Email
  +public class SimpleEmail extends Email
   {
       /**
  -     * Default constructor.
  -     *
  -     * @exception MessagingException.
  -     */
  -    public SimpleEmail() 
  -        throws MessagingException
  -    {
  -        super();
  -    }
  -
  -    /**
         * Set the content of the mail
         *
         * @param msg A String.
         * @return An Email.
  -      * @exception MessagingException.
         */
  -    public Email setMsg(String msg) 
  -        throws MessagingException
  +    public Email setMsg(String msg)
       {
           setContent(msg, TEXT_PLAIN);
           return this;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message