Author: sgoeschl
Date: Sat Oct 23 22:10:50 2010
New Revision: 1026698
URL: http://svn.apache.org/viewvc?rev=1026698&view=rev
Log:
[EMAIL-76] Forget one setter which was not returning the 'this' instance.
Modified:
commons/proper/email/trunk/src/java/org/apache/commons/mail/Email.java
Modified: commons/proper/email/trunk/src/java/org/apache/commons/mail/Email.java
URL:
http://svn.apache.org/viewvc/commons/proper/email/trunk/src/java/org/apache/commons/mail/Email.java?rev=1026698&r1=1026697&r2=1026698&view=diff
==============================================================================
--- commons/proper/email/trunk/src/java/org/apache/commons/mail/Email.java
(original)
+++ commons/proper/email/trunk/src/java/org/apache/commons/mail/Email.java Sat
Oct 23 22:10:50 2010
@@ -195,10 +195,10 @@ public abstract class Email implements E
* @see #setAuthenticator
* @since 1.0
*/
- public void setAuthentication(String userName, String password)
+ public Email setAuthentication(String userName, String password)
{
this.authenticator = new DefaultAuthenticator(userName, password);
- this.setAuthenticator(this.authenticator);
+ return this.setAuthenticator(this.authenticator);
}
/**
@@ -213,9 +213,10 @@ public abstract class Email implements E
* @see Authenticator
* @since 1.0
*/
- public void setAuthenticator(Authenticator newAuthenticator)
+ public Email setAuthenticator(Authenticator newAuthenticator)
{
this.authenticator = newAuthenticator;
+ return this;
}
/**
@@ -1482,7 +1483,6 @@ public abstract class Email implements E
* Get the socket I/O timeout value in milliseconds.
*
* @return the socket I/O timeout
- * @return An Email.
* @since 1.2
*/
public int getSocketTimeout()