commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r915608 [28/34] - in /websites/production/commons/content/proper/commons-email: ./ apidocs/ apidocs/org/apache/commons/mail/ apidocs/org/apache/commons/mail/class-use/ apidocs/org/apache/commons/mail/resolver/ apidocs/org/apache/commons/mai...
Date Wed, 09 Jul 2014 20:46:28 GMT
Modified: websites/production/commons/content/proper/commons-email/xref/org/apache/commons/mail/Email.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/xref/org/apache/commons/mail/Email.html (original)
+++ websites/production/commons/content/proper/commons-email/xref/org/apache/commons/mail/Email.html Wed Jul  9 20:46:21 2014
@@ -57,7 +57,7 @@
 <a class="jxr_linenumber" name="L49" href="#L49">49</a>  <em class="jxr_javadoccomment"> * Subclasses are responsible for setting the message body.</em>
 <a class="jxr_linenumber" name="L50" href="#L50">50</a>  <em class="jxr_javadoccomment"> *</em>
 <a class="jxr_linenumber" name="L51" href="#L51">51</a>  <em class="jxr_javadoccomment"> * @since 1.0</em>
-<a class="jxr_linenumber" name="L52" href="#L52">52</a>  <em class="jxr_javadoccomment"> * @version $Id: Email.java 1563555 2014-02-02 02:51:10Z ggregory $</em>
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>  <em class="jxr_javadoccomment"> * @version $Id: Email.java 1606709 2014-06-30 12:26:06Z ggregory $</em>
 <a class="jxr_linenumber" name="L53" href="#L53">53</a>  <em class="jxr_javadoccomment"> */</em>
 <a class="jxr_linenumber" name="L54" href="#L54">54</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a>
 <a class="jxr_linenumber" name="L55" href="#L55">55</a>  {
@@ -338,7 +338,7 @@
 <a class="jxr_linenumber" name="L330" href="#L330">330</a> <em class="jxr_javadoccomment">     * @param d A boolean.</em>
 <a class="jxr_linenumber" name="L331" href="#L331">331</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L332" href="#L332">332</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L333" href="#L333">333</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setDebug(<strong class="jxr_keyword">boolean</strong> d)
+<a class="jxr_linenumber" name="L333" href="#L333">333</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setDebug(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> d)
 <a class="jxr_linenumber" name="L334" href="#L334">334</a>     {
 <a class="jxr_linenumber" name="L335" href="#L335">335</a>         <strong class="jxr_keyword">this</strong>.debug = d;
 <a class="jxr_linenumber" name="L336" href="#L336">336</a>     }
@@ -356,7 +356,7 @@
 <a class="jxr_linenumber" name="L348" href="#L348">348</a> <em class="jxr_javadoccomment">     * @see #setAuthenticator</em>
 <a class="jxr_linenumber" name="L349" href="#L349">349</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L350" href="#L350">350</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L351" href="#L351">351</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setAuthentication(String userName, String password)
+<a class="jxr_linenumber" name="L351" href="#L351">351</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setAuthentication(<strong class="jxr_keyword">final</strong> String userName, <strong class="jxr_keyword">final</strong> String password)
 <a class="jxr_linenumber" name="L352" href="#L352">352</a>     {
 <a class="jxr_linenumber" name="L353" href="#L353">353</a>         <strong class="jxr_keyword">this</strong>.setAuthenticator(<strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/mail/DefaultAuthenticator.html">DefaultAuthenticator</a>(userName, password));
 <a class="jxr_linenumber" name="L354" href="#L354">354</a>     }
@@ -372,7 +372,7 @@
 <a class="jxr_linenumber" name="L364" href="#L364">364</a> <em class="jxr_javadoccomment">     * @see Authenticator</em>
 <a class="jxr_linenumber" name="L365" href="#L365">365</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L366" href="#L366">366</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L367" href="#L367">367</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setAuthenticator(Authenticator newAuthenticator)
+<a class="jxr_linenumber" name="L367" href="#L367">367</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setAuthenticator(<strong class="jxr_keyword">final</strong> Authenticator newAuthenticator)
 <a class="jxr_linenumber" name="L368" href="#L368">368</a>     {
 <a class="jxr_linenumber" name="L369" href="#L369">369</a>         <strong class="jxr_keyword">this</strong>.authenticator = newAuthenticator;
 <a class="jxr_linenumber" name="L370" href="#L370">370</a>     }
@@ -387,9 +387,9 @@
 <a class="jxr_linenumber" name="L379" href="#L379">379</a> <em class="jxr_javadoccomment">     * exists in the current JVM</em>
 <a class="jxr_linenumber" name="L380" href="#L380">380</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L381" href="#L381">381</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L382" href="#L382">382</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setCharset(String newCharset)
+<a class="jxr_linenumber" name="L382" href="#L382">382</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setCharset(<strong class="jxr_keyword">final</strong> String newCharset)
 <a class="jxr_linenumber" name="L383" href="#L383">383</a>     {
-<a class="jxr_linenumber" name="L384" href="#L384">384</a>         Charset set = Charset.forName(newCharset);
+<a class="jxr_linenumber" name="L384" href="#L384">384</a>         <strong class="jxr_keyword">final</strong> Charset set = Charset.forName(newCharset);
 <a class="jxr_linenumber" name="L385" href="#L385">385</a>         <strong class="jxr_keyword">this</strong>.charset = set.name();
 <a class="jxr_linenumber" name="L386" href="#L386">386</a>     }
 <a class="jxr_linenumber" name="L387" href="#L387">387</a> 
@@ -399,7 +399,7 @@
 <a class="jxr_linenumber" name="L391" href="#L391">391</a> <em class="jxr_javadoccomment">     * @param aMimeMultipart aMimeMultipart</em>
 <a class="jxr_linenumber" name="L392" href="#L392">392</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L393" href="#L393">393</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L394" href="#L394">394</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setContent(MimeMultipart aMimeMultipart)
+<a class="jxr_linenumber" name="L394" href="#L394">394</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setContent(<strong class="jxr_keyword">final</strong> MimeMultipart aMimeMultipart)
 <a class="jxr_linenumber" name="L395" href="#L395">395</a>     {
 <a class="jxr_linenumber" name="L396" href="#L396">396</a>         <strong class="jxr_keyword">this</strong>.emailBody = aMimeMultipart;
 <a class="jxr_linenumber" name="L397" href="#L397">397</a>     }
@@ -411,7 +411,7 @@
 <a class="jxr_linenumber" name="L403" href="#L403">403</a> <em class="jxr_javadoccomment">     * @param   aContentType aContentType</em>
 <a class="jxr_linenumber" name="L404" href="#L404">404</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L405" href="#L405">405</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L406" href="#L406">406</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setContent(Object aObject, String aContentType)
+<a class="jxr_linenumber" name="L406" href="#L406">406</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setContent(<strong class="jxr_keyword">final</strong> Object aObject, <strong class="jxr_keyword">final</strong> String aContentType)
 <a class="jxr_linenumber" name="L407" href="#L407">407</a>     {
 <a class="jxr_linenumber" name="L408" href="#L408">408</a>         <strong class="jxr_keyword">this</strong>.content = aObject;
 <a class="jxr_linenumber" name="L409" href="#L409">409</a>         <strong class="jxr_keyword">this</strong>.updateContentType(aContentType);
@@ -435,14 +435,14 @@
 <a class="jxr_linenumber" name="L427" href="#L427">427</a>             <strong class="jxr_keyword">this</strong>.contentType = aContentType;
 <a class="jxr_linenumber" name="L428" href="#L428">428</a> 
 <a class="jxr_linenumber" name="L429" href="#L429">429</a>             <em class="jxr_comment">// set the charset if the input was properly formed</em>
-<a class="jxr_linenumber" name="L430" href="#L430">430</a>             String strMarker = <span class="jxr_string">"; charset="</span>;
+<a class="jxr_linenumber" name="L430" href="#L430">430</a>             <strong class="jxr_keyword">final</strong> String strMarker = <span class="jxr_string">"; charset="</span>;
 <a class="jxr_linenumber" name="L431" href="#L431">431</a>             <strong class="jxr_keyword">int</strong> charsetPos = aContentType.toLowerCase().indexOf(strMarker);
 <a class="jxr_linenumber" name="L432" href="#L432">432</a> 
 <a class="jxr_linenumber" name="L433" href="#L433">433</a>             <strong class="jxr_keyword">if</strong> (charsetPos != -1)
 <a class="jxr_linenumber" name="L434" href="#L434">434</a>             {
 <a class="jxr_linenumber" name="L435" href="#L435">435</a>                 <em class="jxr_comment">// find the next space (after the marker)</em>
 <a class="jxr_linenumber" name="L436" href="#L436">436</a>                 charsetPos += strMarker.length();
-<a class="jxr_linenumber" name="L437" href="#L437">437</a>                 <strong class="jxr_keyword">int</strong> intCharsetEnd =
+<a class="jxr_linenumber" name="L437" href="#L437">437</a>                 <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> intCharsetEnd =
 <a class="jxr_linenumber" name="L438" href="#L438">438</a>                     aContentType.toLowerCase().indexOf(<span class="jxr_string">" "</span>, charsetPos);
 <a class="jxr_linenumber" name="L439" href="#L439">439</a> 
 <a class="jxr_linenumber" name="L440" href="#L440">440</a>                 <strong class="jxr_keyword">if</strong> (intCharsetEnd != -1)
@@ -461,7 +461,7 @@
 <a class="jxr_linenumber" name="L453" href="#L453">453</a>                 <em class="jxr_comment">// whose content-type is some form of text.</em>
 <a class="jxr_linenumber" name="L454" href="#L454">454</a>                 <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.contentType.startsWith(<span class="jxr_string">"text/"</span>) &amp;&amp; EmailUtils.isNotEmpty(<strong class="jxr_keyword">this</strong>.charset))
 <a class="jxr_linenumber" name="L455" href="#L455">455</a>                 {
-<a class="jxr_linenumber" name="L456" href="#L456">456</a>                     StringBuffer contentTypeBuf = <strong class="jxr_keyword">new</strong> StringBuffer(<strong class="jxr_keyword">this</strong>.contentType);
+<a class="jxr_linenumber" name="L456" href="#L456">456</a>                     <strong class="jxr_keyword">final</strong> StringBuffer contentTypeBuf = <strong class="jxr_keyword">new</strong> StringBuffer(<strong class="jxr_keyword">this</strong>.contentType);
 <a class="jxr_linenumber" name="L457" href="#L457">457</a>                     contentTypeBuf.append(strMarker);
 <a class="jxr_linenumber" name="L458" href="#L458">458</a>                     contentTypeBuf.append(<strong class="jxr_keyword">this</strong>.charset);
 <a class="jxr_linenumber" name="L459" href="#L459">459</a>                     <strong class="jxr_keyword">this</strong>.contentType = contentTypeBuf.toString();
@@ -476,7 +476,7 @@
 <a class="jxr_linenumber" name="L468" href="#L468">468</a> <em class="jxr_javadoccomment">     * @param   aHostName aHostName</em>
 <a class="jxr_linenumber" name="L469" href="#L469">469</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L470" href="#L470">470</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L471" href="#L471">471</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setHostName(String aHostName)
+<a class="jxr_linenumber" name="L471" href="#L471">471</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setHostName(<strong class="jxr_keyword">final</strong> String aHostName)
 <a class="jxr_linenumber" name="L472" href="#L472">472</a>     {
 <a class="jxr_linenumber" name="L473" href="#L473">473</a>         checkSessionAlreadyInitialized();
 <a class="jxr_linenumber" name="L474" href="#L474">474</a>         <strong class="jxr_keyword">this</strong>.hostName = aHostName;
@@ -491,7 +491,7 @@
 <a class="jxr_linenumber" name="L483" href="#L483">483</a> <em class="jxr_javadoccomment">     * @since 1.1</em>
 <a class="jxr_linenumber" name="L484" href="#L484">484</a> <em class="jxr_javadoccomment">     */</em>
 <a class="jxr_linenumber" name="L485" href="#L485">485</a>     @Deprecated
-<a class="jxr_linenumber" name="L486" href="#L486">486</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setTLS(<strong class="jxr_keyword">boolean</strong> withTLS)
+<a class="jxr_linenumber" name="L486" href="#L486">486</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setTLS(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> withTLS)
 <a class="jxr_linenumber" name="L487" href="#L487">487</a>     {
 <a class="jxr_linenumber" name="L488" href="#L488">488</a>         setStartTLSEnabled(withTLS);
 <a class="jxr_linenumber" name="L489" href="#L489">489</a>     }
@@ -503,7 +503,7 @@
 <a class="jxr_linenumber" name="L495" href="#L495">495</a> <em class="jxr_javadoccomment">     * @return An Email.</em>
 <a class="jxr_linenumber" name="L496" href="#L496">496</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
 <a class="jxr_linenumber" name="L497" href="#L497">497</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L498" href="#L498">498</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setStartTLSEnabled(<strong class="jxr_keyword">boolean</strong> startTlsEnabled)
+<a class="jxr_linenumber" name="L498" href="#L498">498</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setStartTLSEnabled(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> startTlsEnabled)
 <a class="jxr_linenumber" name="L499" href="#L499">499</a>     {
 <a class="jxr_linenumber" name="L500" href="#L500">500</a>         checkSessionAlreadyInitialized();
 <a class="jxr_linenumber" name="L501" href="#L501">501</a>         <strong class="jxr_keyword">this</strong>.startTlsEnabled = startTlsEnabled;
@@ -518,7 +518,7 @@
 <a class="jxr_linenumber" name="L510" href="#L510">510</a> <em class="jxr_javadoccomment">     * @return An Email.</em>
 <a class="jxr_linenumber" name="L511" href="#L511">511</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
 <a class="jxr_linenumber" name="L512" href="#L512">512</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L513" href="#L513">513</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setStartTLSRequired(<strong class="jxr_keyword">boolean</strong> startTlsRequired)
+<a class="jxr_linenumber" name="L513" href="#L513">513</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setStartTLSRequired(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> startTlsRequired)
 <a class="jxr_linenumber" name="L514" href="#L514">514</a>     {
 <a class="jxr_linenumber" name="L515" href="#L515">515</a>         checkSessionAlreadyInitialized();
 <a class="jxr_linenumber" name="L516" href="#L516">516</a>         <strong class="jxr_keyword">this</strong>.startTlsRequired = startTlsRequired;
@@ -532,7 +532,7 @@
 <a class="jxr_linenumber" name="L524" href="#L524">524</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if the port number is &amp;lt; 1</em>
 <a class="jxr_linenumber" name="L525" href="#L525">525</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L526" href="#L526">526</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L527" href="#L527">527</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setSmtpPort(<strong class="jxr_keyword">int</strong> aPortNumber)
+<a class="jxr_linenumber" name="L527" href="#L527">527</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setSmtpPort(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> aPortNumber)
 <a class="jxr_linenumber" name="L528" href="#L528">528</a>     {
 <a class="jxr_linenumber" name="L529" href="#L529">529</a>         checkSessionAlreadyInitialized();
 <a class="jxr_linenumber" name="L530" href="#L530">530</a> 
@@ -561,17 +561,17 @@
 <a class="jxr_linenumber" name="L553" href="#L553">553</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if the session is {@code null}</em>
 <a class="jxr_linenumber" name="L554" href="#L554">554</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L555" href="#L555">555</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L556" href="#L556">556</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setMailSession(Session aSession)
+<a class="jxr_linenumber" name="L556" href="#L556">556</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setMailSession(<strong class="jxr_keyword">final</strong> Session aSession)
 <a class="jxr_linenumber" name="L557" href="#L557">557</a>     {
 <a class="jxr_linenumber" name="L558" href="#L558">558</a>         EmailUtils.notNull(aSession, <span class="jxr_string">"no mail session supplied"</span>);
 <a class="jxr_linenumber" name="L559" href="#L559">559</a> 
-<a class="jxr_linenumber" name="L560" href="#L560">560</a>         Properties sessionProperties = aSession.getProperties();
-<a class="jxr_linenumber" name="L561" href="#L561">561</a>         String auth = sessionProperties.getProperty(MAIL_SMTP_AUTH);
+<a class="jxr_linenumber" name="L560" href="#L560">560</a>         <strong class="jxr_keyword">final</strong> Properties sessionProperties = aSession.getProperties();
+<a class="jxr_linenumber" name="L561" href="#L561">561</a>         <strong class="jxr_keyword">final</strong> String auth = sessionProperties.getProperty(MAIL_SMTP_AUTH);
 <a class="jxr_linenumber" name="L562" href="#L562">562</a> 
 <a class="jxr_linenumber" name="L563" href="#L563">563</a>         <strong class="jxr_keyword">if</strong> (<span class="jxr_string">"true"</span>.equalsIgnoreCase(auth))
 <a class="jxr_linenumber" name="L564" href="#L564">564</a>         {
-<a class="jxr_linenumber" name="L565" href="#L565">565</a>             String userName = sessionProperties.getProperty(MAIL_SMTP_USER);
-<a class="jxr_linenumber" name="L566" href="#L566">566</a>             String password = sessionProperties.getProperty(MAIL_SMTP_PASSWORD);
+<a class="jxr_linenumber" name="L565" href="#L565">565</a>             <strong class="jxr_keyword">final</strong> String userName = sessionProperties.getProperty(MAIL_SMTP_USER);
+<a class="jxr_linenumber" name="L566" href="#L566">566</a>             <strong class="jxr_keyword">final</strong> String password = sessionProperties.getProperty(MAIL_SMTP_PASSWORD);
 <a class="jxr_linenumber" name="L567" href="#L567">567</a> 
 <a class="jxr_linenumber" name="L568" href="#L568">568</a>             <strong class="jxr_keyword">if</strong> (EmailUtils.isNotEmpty(userName) &amp;&amp; EmailUtils.isNotEmpty(password))
 <a class="jxr_linenumber" name="L569" href="#L569">569</a>             {
@@ -601,7 +601,7 @@
 <a class="jxr_linenumber" name="L593" href="#L593">593</a> <em class="jxr_javadoccomment">     * @throws NamingException if the resource cannot be retrieved from JNDI directory</em>
 <a class="jxr_linenumber" name="L594" href="#L594">594</a> <em class="jxr_javadoccomment">     * @since 1.1</em>
 <a class="jxr_linenumber" name="L595" href="#L595">595</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L596" href="#L596">596</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setMailSessionFromJNDI(String jndiName) <strong class="jxr_keyword">throws</strong> NamingException
+<a class="jxr_linenumber" name="L596" href="#L596">596</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setMailSessionFromJNDI(<strong class="jxr_keyword">final</strong> String jndiName) <strong class="jxr_keyword">throws</strong> NamingException
 <a class="jxr_linenumber" name="L597" href="#L597">597</a>     {
 <a class="jxr_linenumber" name="L598" href="#L598">598</a>         <strong class="jxr_keyword">if</strong> (EmailUtils.isEmpty(jndiName))
 <a class="jxr_linenumber" name="L599" href="#L599">599</a>         {
@@ -634,7 +634,7 @@
 <a class="jxr_linenumber" name="L626" href="#L626">626</a>     {
 <a class="jxr_linenumber" name="L627" href="#L627">627</a>         <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.session == <strong class="jxr_keyword">null</strong>)
 <a class="jxr_linenumber" name="L628" href="#L628">628</a>         {
-<a class="jxr_linenumber" name="L629" href="#L629">629</a>             Properties properties = <strong class="jxr_keyword">new</strong> Properties(System.getProperties());
+<a class="jxr_linenumber" name="L629" href="#L629">629</a>             <strong class="jxr_keyword">final</strong> Properties properties = <strong class="jxr_keyword">new</strong> Properties(System.getProperties());
 <a class="jxr_linenumber" name="L630" href="#L630">630</a>             properties.setProperty(MAIL_TRANSPORT_PROTOCOL, SMTP);
 <a class="jxr_linenumber" name="L631" href="#L631">631</a> 
 <a class="jxr_linenumber" name="L632" href="#L632">632</a>             <strong class="jxr_keyword">if</strong> (EmailUtils.isEmpty(<strong class="jxr_keyword">this</strong>.hostName))
@@ -714,7 +714,7 @@
 <a class="jxr_linenumber" name="L706" href="#L706">706</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address.</em>
 <a class="jxr_linenumber" name="L707" href="#L707">707</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L708" href="#L708">708</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L709" href="#L709">709</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setFrom(String email)
+<a class="jxr_linenumber" name="L709" href="#L709">709</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setFrom(<strong class="jxr_keyword">final</strong> String email)
 <a class="jxr_linenumber" name="L710" href="#L710">710</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L711" href="#L711">711</a>     {
 <a class="jxr_linenumber" name="L712" href="#L712">712</a>         <strong class="jxr_keyword">return</strong> setFrom(email, <strong class="jxr_keyword">null</strong>);
@@ -734,7 +734,7 @@
 <a class="jxr_linenumber" name="L726" href="#L726">726</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address.</em>
 <a class="jxr_linenumber" name="L727" href="#L727">727</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L728" href="#L728">728</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L729" href="#L729">729</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setFrom(String email, String name)
+<a class="jxr_linenumber" name="L729" href="#L729">729</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setFrom(<strong class="jxr_keyword">final</strong> String email, <strong class="jxr_keyword">final</strong> String name)
 <a class="jxr_linenumber" name="L730" href="#L730">730</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L731" href="#L731">731</a>     {
 <a class="jxr_linenumber" name="L732" href="#L732">732</a>         <strong class="jxr_keyword">return</strong> setFrom(email, name, <strong class="jxr_keyword">this</strong>.charset);
@@ -751,7 +751,7 @@
 <a class="jxr_linenumber" name="L743" href="#L743">743</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address or charset.</em>
 <a class="jxr_linenumber" name="L744" href="#L744">744</a> <em class="jxr_javadoccomment">     * @since 1.1</em>
 <a class="jxr_linenumber" name="L745" href="#L745">745</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L746" href="#L746">746</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setFrom(String email, String name, String charset)
+<a class="jxr_linenumber" name="L746" href="#L746">746</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setFrom(<strong class="jxr_keyword">final</strong> String email, <strong class="jxr_keyword">final</strong> String name, <strong class="jxr_keyword">final</strong> String charset)
 <a class="jxr_linenumber" name="L747" href="#L747">747</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L748" href="#L748">748</a>     {
 <a class="jxr_linenumber" name="L749" href="#L749">749</a>         <strong class="jxr_keyword">this</strong>.fromAddress = createInternetAddress(email, name, charset);
@@ -772,7 +772,7 @@
 <a class="jxr_linenumber" name="L764" href="#L764">764</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address.</em>
 <a class="jxr_linenumber" name="L765" href="#L765">765</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L766" href="#L766">766</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L767" href="#L767">767</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addTo(String email)
+<a class="jxr_linenumber" name="L767" href="#L767">767</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addTo(<strong class="jxr_keyword">final</strong> String email)
 <a class="jxr_linenumber" name="L768" href="#L768">768</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L769" href="#L769">769</a>     {
 <a class="jxr_linenumber" name="L770" href="#L770">770</a>         <strong class="jxr_keyword">return</strong> addTo(email, <strong class="jxr_keyword">null</strong>);
@@ -792,7 +792,7 @@
 <a class="jxr_linenumber" name="L784" href="#L784">784</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address.</em>
 <a class="jxr_linenumber" name="L785" href="#L785">785</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
 <a class="jxr_linenumber" name="L786" href="#L786">786</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L787" href="#L787">787</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addTo(String... emails)
+<a class="jxr_linenumber" name="L787" href="#L787">787</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addTo(<strong class="jxr_keyword">final</strong> String... emails)
 <a class="jxr_linenumber" name="L788" href="#L788">788</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L789" href="#L789">789</a>     {
 <a class="jxr_linenumber" name="L790" href="#L790">790</a>         <strong class="jxr_keyword">if</strong> (emails == <strong class="jxr_keyword">null</strong> || emails.length == 0)
@@ -800,7 +800,7 @@
 <a class="jxr_linenumber" name="L792" href="#L792">792</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>(<span class="jxr_string">"Address List provided was invalid"</span>);
 <a class="jxr_linenumber" name="L793" href="#L793">793</a>         }
 <a class="jxr_linenumber" name="L794" href="#L794">794</a> 
-<a class="jxr_linenumber" name="L795" href="#L795">795</a>         <strong class="jxr_keyword">for</strong> (String email : emails)
+<a class="jxr_linenumber" name="L795" href="#L795">795</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> String email : emails)
 <a class="jxr_linenumber" name="L796" href="#L796">796</a>         {
 <a class="jxr_linenumber" name="L797" href="#L797">797</a>             addTo(email, <strong class="jxr_keyword">null</strong>);
 <a class="jxr_linenumber" name="L798" href="#L798">798</a>         }
@@ -823,7 +823,7 @@
 <a class="jxr_linenumber" name="L815" href="#L815">815</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address.</em>
 <a class="jxr_linenumber" name="L816" href="#L816">816</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L817" href="#L817">817</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L818" href="#L818">818</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addTo(String email, String name)
+<a class="jxr_linenumber" name="L818" href="#L818">818</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addTo(<strong class="jxr_keyword">final</strong> String email, <strong class="jxr_keyword">final</strong> String name)
 <a class="jxr_linenumber" name="L819" href="#L819">819</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L820" href="#L820">820</a>     {
 <a class="jxr_linenumber" name="L821" href="#L821">821</a>         <strong class="jxr_keyword">return</strong> addTo(email, name, <strong class="jxr_keyword">this</strong>.charset);
@@ -840,7 +840,7 @@
 <a class="jxr_linenumber" name="L832" href="#L832">832</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address or charset.</em>
 <a class="jxr_linenumber" name="L833" href="#L833">833</a> <em class="jxr_javadoccomment">     * @since 1.1</em>
 <a class="jxr_linenumber" name="L834" href="#L834">834</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L835" href="#L835">835</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addTo(String email, String name, String charset)
+<a class="jxr_linenumber" name="L835" href="#L835">835</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addTo(<strong class="jxr_keyword">final</strong> String email, <strong class="jxr_keyword">final</strong> String name, <strong class="jxr_keyword">final</strong> String charset)
 <a class="jxr_linenumber" name="L836" href="#L836">836</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L837" href="#L837">837</a>     {
 <a class="jxr_linenumber" name="L838" href="#L838">838</a>         <strong class="jxr_keyword">this</strong>.toList.add(createInternetAddress(email, name, charset));
@@ -858,7 +858,7 @@
 <a class="jxr_linenumber" name="L850" href="#L850">850</a> <em class="jxr_javadoccomment">     * @see javax.mail.internet.InternetAddress</em>
 <a class="jxr_linenumber" name="L851" href="#L851">851</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L852" href="#L852">852</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L853" href="#L853">853</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setTo(Collection&lt;InternetAddress&gt; aCollection) <strong class="jxr_keyword">throws</strong> EmailException
+<a class="jxr_linenumber" name="L853" href="#L853">853</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setTo(<strong class="jxr_keyword">final</strong> Collection&lt;InternetAddress&gt; aCollection) <strong class="jxr_keyword">throws</strong> EmailException
 <a class="jxr_linenumber" name="L854" href="#L854">854</a>     {
 <a class="jxr_linenumber" name="L855" href="#L855">855</a>         <strong class="jxr_keyword">if</strong> (aCollection == <strong class="jxr_keyword">null</strong> || aCollection.isEmpty())
 <a class="jxr_linenumber" name="L856" href="#L856">856</a>         {
@@ -882,7 +882,7 @@
 <a class="jxr_linenumber" name="L874" href="#L874">874</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address.</em>
 <a class="jxr_linenumber" name="L875" href="#L875">875</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L876" href="#L876">876</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L877" href="#L877">877</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addCc(String email)
+<a class="jxr_linenumber" name="L877" href="#L877">877</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addCc(<strong class="jxr_keyword">final</strong> String email)
 <a class="jxr_linenumber" name="L878" href="#L878">878</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L879" href="#L879">879</a>     {
 <a class="jxr_linenumber" name="L880" href="#L880">880</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.addCc(email, <strong class="jxr_keyword">null</strong>);
@@ -902,7 +902,7 @@
 <a class="jxr_linenumber" name="L894" href="#L894">894</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address.</em>
 <a class="jxr_linenumber" name="L895" href="#L895">895</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
 <a class="jxr_linenumber" name="L896" href="#L896">896</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L897" href="#L897">897</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addCc(String... emails)
+<a class="jxr_linenumber" name="L897" href="#L897">897</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addCc(<strong class="jxr_keyword">final</strong> String... emails)
 <a class="jxr_linenumber" name="L898" href="#L898">898</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L899" href="#L899">899</a>     {
 <a class="jxr_linenumber" name="L900" href="#L900">900</a>         <strong class="jxr_keyword">if</strong> (emails == <strong class="jxr_keyword">null</strong> || emails.length == 0)
@@ -910,7 +910,7 @@
 <a class="jxr_linenumber" name="L902" href="#L902">902</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>(<span class="jxr_string">"Address List provided was invalid"</span>);
 <a class="jxr_linenumber" name="L903" href="#L903">903</a>         }
 <a class="jxr_linenumber" name="L904" href="#L904">904</a> 
-<a class="jxr_linenumber" name="L905" href="#L905">905</a>         <strong class="jxr_keyword">for</strong> (String email : emails)
+<a class="jxr_linenumber" name="L905" href="#L905">905</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> String email : emails)
 <a class="jxr_linenumber" name="L906" href="#L906">906</a>         {
 <a class="jxr_linenumber" name="L907" href="#L907">907</a>             addCc(email, <strong class="jxr_keyword">null</strong>);
 <a class="jxr_linenumber" name="L908" href="#L908">908</a>         }
@@ -932,7 +932,7 @@
 <a class="jxr_linenumber" name="L924" href="#L924">924</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address.</em>
 <a class="jxr_linenumber" name="L925" href="#L925">925</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L926" href="#L926">926</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L927" href="#L927">927</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addCc(String email, String name)
+<a class="jxr_linenumber" name="L927" href="#L927">927</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addCc(<strong class="jxr_keyword">final</strong> String email, <strong class="jxr_keyword">final</strong> String name)
 <a class="jxr_linenumber" name="L928" href="#L928">928</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L929" href="#L929">929</a>     {
 <a class="jxr_linenumber" name="L930" href="#L930">930</a>         <strong class="jxr_keyword">return</strong> addCc(email, name, <strong class="jxr_keyword">this</strong>.charset);
@@ -949,7 +949,7 @@
 <a class="jxr_linenumber" name="L941" href="#L941">941</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address or charset.</em>
 <a class="jxr_linenumber" name="L942" href="#L942">942</a> <em class="jxr_javadoccomment">     * @since 1.1</em>
 <a class="jxr_linenumber" name="L943" href="#L943">943</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L944" href="#L944">944</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addCc(String email, String name, String charset)
+<a class="jxr_linenumber" name="L944" href="#L944">944</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addCc(<strong class="jxr_keyword">final</strong> String email, <strong class="jxr_keyword">final</strong> String name, <strong class="jxr_keyword">final</strong> String charset)
 <a class="jxr_linenumber" name="L945" href="#L945">945</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L946" href="#L946">946</a>     {
 <a class="jxr_linenumber" name="L947" href="#L947">947</a>         <strong class="jxr_keyword">this</strong>.ccList.add(createInternetAddress(email, name, charset));
@@ -967,7 +967,7 @@
 <a class="jxr_linenumber" name="L959" href="#L959">959</a> <em class="jxr_javadoccomment">     * @see javax.mail.internet.InternetAddress</em>
 <a class="jxr_linenumber" name="L960" href="#L960">960</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L961" href="#L961">961</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L962" href="#L962">962</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setCc(Collection&lt;InternetAddress&gt; aCollection) <strong class="jxr_keyword">throws</strong> EmailException
+<a class="jxr_linenumber" name="L962" href="#L962">962</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setCc(<strong class="jxr_keyword">final</strong> Collection&lt;InternetAddress&gt; aCollection) <strong class="jxr_keyword">throws</strong> EmailException
 <a class="jxr_linenumber" name="L963" href="#L963">963</a>     {
 <a class="jxr_linenumber" name="L964" href="#L964">964</a>         <strong class="jxr_keyword">if</strong> (aCollection == <strong class="jxr_keyword">null</strong> || aCollection.isEmpty())
 <a class="jxr_linenumber" name="L965" href="#L965">965</a>         {
@@ -991,7 +991,7 @@
 <a class="jxr_linenumber" name="L983" href="#L983">983</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address</em>
 <a class="jxr_linenumber" name="L984" href="#L984">984</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L985" href="#L985">985</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L986" href="#L986">986</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addBcc(String email)
+<a class="jxr_linenumber" name="L986" href="#L986">986</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addBcc(<strong class="jxr_keyword">final</strong> String email)
 <a class="jxr_linenumber" name="L987" href="#L987">987</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L988" href="#L988">988</a>     {
 <a class="jxr_linenumber" name="L989" href="#L989">989</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.addBcc(email, <strong class="jxr_keyword">null</strong>);
@@ -1011,7 +1011,7 @@
 <a class="jxr_linenumber" name="L1003" href="#L1003">1003</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address</em>
 <a class="jxr_linenumber" name="L1004" href="#L1004">1004</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
 <a class="jxr_linenumber" name="L1005" href="#L1005">1005</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1006" href="#L1006">1006</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addBcc(String... emails)
+<a class="jxr_linenumber" name="L1006" href="#L1006">1006</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addBcc(<strong class="jxr_keyword">final</strong> String... emails)
 <a class="jxr_linenumber" name="L1007" href="#L1007">1007</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L1008" href="#L1008">1008</a>     {
 <a class="jxr_linenumber" name="L1009" href="#L1009">1009</a>         <strong class="jxr_keyword">if</strong> (emails == <strong class="jxr_keyword">null</strong> || emails.length == 0)
@@ -1019,7 +1019,7 @@
 <a class="jxr_linenumber" name="L1011" href="#L1011">1011</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>(<span class="jxr_string">"Address List provided was invalid"</span>);
 <a class="jxr_linenumber" name="L1012" href="#L1012">1012</a>         }
 <a class="jxr_linenumber" name="L1013" href="#L1013">1013</a> 
-<a class="jxr_linenumber" name="L1014" href="#L1014">1014</a>         <strong class="jxr_keyword">for</strong> (String email : emails)
+<a class="jxr_linenumber" name="L1014" href="#L1014">1014</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> String email : emails)
 <a class="jxr_linenumber" name="L1015" href="#L1015">1015</a>         {
 <a class="jxr_linenumber" name="L1016" href="#L1016">1016</a>             addBcc(email, <strong class="jxr_keyword">null</strong>);
 <a class="jxr_linenumber" name="L1017" href="#L1017">1017</a>         }
@@ -1041,7 +1041,7 @@
 <a class="jxr_linenumber" name="L1033" href="#L1033">1033</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address</em>
 <a class="jxr_linenumber" name="L1034" href="#L1034">1034</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L1035" href="#L1035">1035</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1036" href="#L1036">1036</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addBcc(String email, String name)
+<a class="jxr_linenumber" name="L1036" href="#L1036">1036</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addBcc(<strong class="jxr_keyword">final</strong> String email, <strong class="jxr_keyword">final</strong> String name)
 <a class="jxr_linenumber" name="L1037" href="#L1037">1037</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L1038" href="#L1038">1038</a>     {
 <a class="jxr_linenumber" name="L1039" href="#L1039">1039</a>         <strong class="jxr_keyword">return</strong> addBcc(email, name, <strong class="jxr_keyword">this</strong>.charset);
@@ -1058,7 +1058,7 @@
 <a class="jxr_linenumber" name="L1050" href="#L1050">1050</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address</em>
 <a class="jxr_linenumber" name="L1051" href="#L1051">1051</a> <em class="jxr_javadoccomment">     * @since 1.1</em>
 <a class="jxr_linenumber" name="L1052" href="#L1052">1052</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1053" href="#L1053">1053</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addBcc(String email, String name, String charset)
+<a class="jxr_linenumber" name="L1053" href="#L1053">1053</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addBcc(<strong class="jxr_keyword">final</strong> String email, <strong class="jxr_keyword">final</strong> String name, <strong class="jxr_keyword">final</strong> String charset)
 <a class="jxr_linenumber" name="L1054" href="#L1054">1054</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L1055" href="#L1055">1055</a>     {
 <a class="jxr_linenumber" name="L1056" href="#L1056">1056</a>         <strong class="jxr_keyword">this</strong>.bccList.add(createInternetAddress(email, name, charset));
@@ -1076,7 +1076,7 @@
 <a class="jxr_linenumber" name="L1068" href="#L1068">1068</a> <em class="jxr_javadoccomment">     * @see javax.mail.internet.InternetAddress</em>
 <a class="jxr_linenumber" name="L1069" href="#L1069">1069</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L1070" href="#L1070">1070</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1071" href="#L1071">1071</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setBcc(Collection&lt;InternetAddress&gt; aCollection) <strong class="jxr_keyword">throws</strong> EmailException
+<a class="jxr_linenumber" name="L1071" href="#L1071">1071</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setBcc(<strong class="jxr_keyword">final</strong> Collection&lt;InternetAddress&gt; aCollection) <strong class="jxr_keyword">throws</strong> EmailException
 <a class="jxr_linenumber" name="L1072" href="#L1072">1072</a>     {
 <a class="jxr_linenumber" name="L1073" href="#L1073">1073</a>         <strong class="jxr_keyword">if</strong> (aCollection == <strong class="jxr_keyword">null</strong> || aCollection.isEmpty())
 <a class="jxr_linenumber" name="L1074" href="#L1074">1074</a>         {
@@ -1100,7 +1100,7 @@
 <a class="jxr_linenumber" name="L1092" href="#L1092">1092</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address</em>
 <a class="jxr_linenumber" name="L1093" href="#L1093">1093</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L1094" href="#L1094">1094</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1095" href="#L1095">1095</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addReplyTo(String email)
+<a class="jxr_linenumber" name="L1095" href="#L1095">1095</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addReplyTo(<strong class="jxr_keyword">final</strong> String email)
 <a class="jxr_linenumber" name="L1096" href="#L1096">1096</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L1097" href="#L1097">1097</a>     {
 <a class="jxr_linenumber" name="L1098" href="#L1098">1098</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.addReplyTo(email, <strong class="jxr_keyword">null</strong>);
@@ -1120,7 +1120,7 @@
 <a class="jxr_linenumber" name="L1112" href="#L1112">1112</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address</em>
 <a class="jxr_linenumber" name="L1113" href="#L1113">1113</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L1114" href="#L1114">1114</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1115" href="#L1115">1115</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addReplyTo(String email, String name)
+<a class="jxr_linenumber" name="L1115" href="#L1115">1115</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addReplyTo(<strong class="jxr_keyword">final</strong> String email, <strong class="jxr_keyword">final</strong> String name)
 <a class="jxr_linenumber" name="L1116" href="#L1116">1116</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L1117" href="#L1117">1117</a>     {
 <a class="jxr_linenumber" name="L1118" href="#L1118">1118</a>         <strong class="jxr_keyword">return</strong> addReplyTo(email, name, <strong class="jxr_keyword">this</strong>.charset);
@@ -1137,7 +1137,7 @@
 <a class="jxr_linenumber" name="L1129" href="#L1129">1129</a> <em class="jxr_javadoccomment">     * @throws EmailException Indicates an invalid email address or charset.</em>
 <a class="jxr_linenumber" name="L1130" href="#L1130">1130</a> <em class="jxr_javadoccomment">     * @since 1.1</em>
 <a class="jxr_linenumber" name="L1131" href="#L1131">1131</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1132" href="#L1132">1132</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addReplyTo(String email, String name, String charset)
+<a class="jxr_linenumber" name="L1132" href="#L1132">1132</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> addReplyTo(<strong class="jxr_keyword">final</strong> String email, <strong class="jxr_keyword">final</strong> String name, <strong class="jxr_keyword">final</strong> String charset)
 <a class="jxr_linenumber" name="L1133" href="#L1133">1133</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L1134" href="#L1134">1134</a>     {
 <a class="jxr_linenumber" name="L1135" href="#L1135">1135</a>         <strong class="jxr_keyword">this</strong>.replyList.add(createInternetAddress(email, name, charset));
@@ -1155,7 +1155,7 @@
 <a class="jxr_linenumber" name="L1147" href="#L1147">1147</a> <em class="jxr_javadoccomment">     * @see javax.mail.internet.InternetAddress</em>
 <a class="jxr_linenumber" name="L1148" href="#L1148">1148</a> <em class="jxr_javadoccomment">     * @since 1.1</em>
 <a class="jxr_linenumber" name="L1149" href="#L1149">1149</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1150" href="#L1150">1150</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setReplyTo(Collection&lt;InternetAddress&gt; aCollection) <strong class="jxr_keyword">throws</strong> EmailException
+<a class="jxr_linenumber" name="L1150" href="#L1150">1150</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setReplyTo(<strong class="jxr_keyword">final</strong> Collection&lt;InternetAddress&gt; aCollection) <strong class="jxr_keyword">throws</strong> EmailException
 <a class="jxr_linenumber" name="L1151" href="#L1151">1151</a>     {
 <a class="jxr_linenumber" name="L1152" href="#L1152">1152</a>         <strong class="jxr_keyword">if</strong> (aCollection == <strong class="jxr_keyword">null</strong> || aCollection.isEmpty())
 <a class="jxr_linenumber" name="L1153" href="#L1153">1153</a>         {
@@ -1177,11 +1177,11 @@
 <a class="jxr_linenumber" name="L1169" href="#L1169">1169</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if either of the provided header / value is null or empty</em>
 <a class="jxr_linenumber" name="L1170" href="#L1170">1170</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L1171" href="#L1171">1171</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1172" href="#L1172">1172</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setHeaders(Map&lt;String, String&gt; map)
+<a class="jxr_linenumber" name="L1172" href="#L1172">1172</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setHeaders(<strong class="jxr_keyword">final</strong> Map&lt;String, String&gt; map)
 <a class="jxr_linenumber" name="L1173" href="#L1173">1173</a>     {
 <a class="jxr_linenumber" name="L1174" href="#L1174">1174</a>         <strong class="jxr_keyword">this</strong>.headers.clear();
 <a class="jxr_linenumber" name="L1175" href="#L1175">1175</a> 
-<a class="jxr_linenumber" name="L1176" href="#L1176">1176</a>         <strong class="jxr_keyword">for</strong> (Map.Entry&lt;String, String&gt; entry : map.entrySet())
+<a class="jxr_linenumber" name="L1176" href="#L1176">1176</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> Map.Entry&lt;String, String&gt; entry : map.entrySet())
 <a class="jxr_linenumber" name="L1177" href="#L1177">1177</a>         {
 <a class="jxr_linenumber" name="L1178" href="#L1178">1178</a>             addHeader(entry.getKey(), entry.getValue());
 <a class="jxr_linenumber" name="L1179" href="#L1179">1179</a>         }
@@ -1195,7 +1195,7 @@
 <a class="jxr_linenumber" name="L1187" href="#L1187">1187</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L1188" href="#L1188">1188</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if either {@code name} or {@code value} is null or empty</em>
 <a class="jxr_linenumber" name="L1189" href="#L1189">1189</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1190" href="#L1190">1190</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> addHeader(String name, String value)
+<a class="jxr_linenumber" name="L1190" href="#L1190">1190</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> addHeader(<strong class="jxr_keyword">final</strong> String name, <strong class="jxr_keyword">final</strong> String value)
 <a class="jxr_linenumber" name="L1191" href="#L1191">1191</a>     {
 <a class="jxr_linenumber" name="L1192" href="#L1192">1192</a>         <strong class="jxr_keyword">if</strong> (EmailUtils.isEmpty(name))
 <a class="jxr_linenumber" name="L1193" href="#L1193">1193</a>         {
@@ -1216,7 +1216,7 @@
 <a class="jxr_linenumber" name="L1208" href="#L1208">1208</a> <em class="jxr_javadoccomment">     * @return An Email.</em>
 <a class="jxr_linenumber" name="L1209" href="#L1209">1209</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L1210" href="#L1210">1210</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1211" href="#L1211">1211</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setSubject(String aSubject)
+<a class="jxr_linenumber" name="L1211" href="#L1211">1211</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setSubject(<strong class="jxr_keyword">final</strong> String aSubject)
 <a class="jxr_linenumber" name="L1212" href="#L1212">1212</a>     {
 <a class="jxr_linenumber" name="L1213" href="#L1213">1213</a>         <strong class="jxr_keyword">this</strong>.subject = aSubject;
 <a class="jxr_linenumber" name="L1214" href="#L1214">1214</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>;
@@ -1233,7 +1233,7 @@
 <a class="jxr_linenumber" name="L1225" href="#L1225">1225</a> <em class="jxr_javadoccomment">     * @throws IllegalStateException when the mail session is already initialized</em>
 <a class="jxr_linenumber" name="L1226" href="#L1226">1226</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L1227" href="#L1227">1227</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1228" href="#L1228">1228</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setBounceAddress(String email)
+<a class="jxr_linenumber" name="L1228" href="#L1228">1228</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setBounceAddress(<strong class="jxr_keyword">final</strong> String email)
 <a class="jxr_linenumber" name="L1229" href="#L1229">1229</a>     {
 <a class="jxr_linenumber" name="L1230" href="#L1230">1230</a>         checkSessionAlreadyInitialized();
 <a class="jxr_linenumber" name="L1231" href="#L1231">1231</a>         <strong class="jxr_keyword">this</strong>.bounceAddress = email;
@@ -1367,9 +1367,9 @@
 <a class="jxr_linenumber" name="L1359" href="#L1359">1359</a> 
 <a class="jxr_linenumber" name="L1360" href="#L1360">1360</a>             <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.headers.size() &gt; 0)
 <a class="jxr_linenumber" name="L1361" href="#L1361">1361</a>             {
-<a class="jxr_linenumber" name="L1362" href="#L1362">1362</a>                 <strong class="jxr_keyword">for</strong> (Map.Entry&lt;String, String&gt; entry : <strong class="jxr_keyword">this</strong>.headers.entrySet())
+<a class="jxr_linenumber" name="L1362" href="#L1362">1362</a>                 <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> Map.Entry&lt;String, String&gt; entry : <strong class="jxr_keyword">this</strong>.headers.entrySet())
 <a class="jxr_linenumber" name="L1363" href="#L1363">1363</a>                 {
-<a class="jxr_linenumber" name="L1364" href="#L1364">1364</a>                     String foldedValue = createFoldedHeaderValue(entry.getKey(), entry.getValue());
+<a class="jxr_linenumber" name="L1364" href="#L1364">1364</a>                     <strong class="jxr_keyword">final</strong> String foldedValue = createFoldedHeaderValue(entry.getKey(), entry.getValue());
 <a class="jxr_linenumber" name="L1365" href="#L1365">1365</a>                     <strong class="jxr_keyword">this</strong>.message.addHeader(entry.getKey(), foldedValue);
 <a class="jxr_linenumber" name="L1366" href="#L1366">1366</a>                 }
 <a class="jxr_linenumber" name="L1367" href="#L1367">1367</a>             }
@@ -1381,11 +1381,11 @@
 <a class="jxr_linenumber" name="L1373" href="#L1373">1373</a> 
 <a class="jxr_linenumber" name="L1374" href="#L1374">1374</a>             <strong class="jxr_keyword">if</strong> (<strong class="jxr_keyword">this</strong>.popBeforeSmtp)
 <a class="jxr_linenumber" name="L1375" href="#L1375">1375</a>             {
-<a class="jxr_linenumber" name="L1376" href="#L1376">1376</a>                 Store store = session.getStore(<span class="jxr_string">"pop3"</span>);
+<a class="jxr_linenumber" name="L1376" href="#L1376">1376</a>                 <strong class="jxr_keyword">final</strong> Store store = session.getStore(<span class="jxr_string">"pop3"</span>);
 <a class="jxr_linenumber" name="L1377" href="#L1377">1377</a>                 store.connect(<strong class="jxr_keyword">this</strong>.popHost, <strong class="jxr_keyword">this</strong>.popUsername, <strong class="jxr_keyword">this</strong>.popPassword);
 <a class="jxr_linenumber" name="L1378" href="#L1378">1378</a>             }
 <a class="jxr_linenumber" name="L1379" href="#L1379">1379</a>         }
-<a class="jxr_linenumber" name="L1380" href="#L1380">1380</a>         <strong class="jxr_keyword">catch</strong> (MessagingException me)
+<a class="jxr_linenumber" name="L1380" href="#L1380">1380</a>         <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> MessagingException me)
 <a class="jxr_linenumber" name="L1381" href="#L1381">1381</a>         {
 <a class="jxr_linenumber" name="L1382" href="#L1382">1382</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>(me);
 <a class="jxr_linenumber" name="L1383" href="#L1383">1383</a>         }
@@ -1408,9 +1408,9 @@
 <a class="jxr_linenumber" name="L1400" href="#L1400">1400</a>             Transport.send(<strong class="jxr_keyword">this</strong>.message);
 <a class="jxr_linenumber" name="L1401" href="#L1401">1401</a>             <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">this</strong>.message.getMessageID();
 <a class="jxr_linenumber" name="L1402" href="#L1402">1402</a>         }
-<a class="jxr_linenumber" name="L1403" href="#L1403">1403</a>         <strong class="jxr_keyword">catch</strong> (Throwable t)
+<a class="jxr_linenumber" name="L1403" href="#L1403">1403</a>         <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> Throwable t)
 <a class="jxr_linenumber" name="L1404" href="#L1404">1404</a>         {
-<a class="jxr_linenumber" name="L1405" href="#L1405">1405</a>             String msg = <span class="jxr_string">"Sending the email to the following server failed : "</span>
+<a class="jxr_linenumber" name="L1405" href="#L1405">1405</a>             <strong class="jxr_keyword">final</strong> String msg = <span class="jxr_string">"Sending the email to the following server failed : "</span>
 <a class="jxr_linenumber" name="L1406" href="#L1406">1406</a>                 + <strong class="jxr_keyword">this</strong>.getHostName()
 <a class="jxr_linenumber" name="L1407" href="#L1407">1407</a>                 + <span class="jxr_string">":"</span>
 <a class="jxr_linenumber" name="L1408" href="#L1408">1408</a>                 + <strong class="jxr_keyword">this</strong>.getSmtpPort();
@@ -1452,7 +1452,7 @@
 <a class="jxr_linenumber" name="L1444" href="#L1444">1444</a> <em class="jxr_javadoccomment">     * @param date Date to use as the sent date on the email</em>
 <a class="jxr_linenumber" name="L1445" href="#L1445">1445</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L1446" href="#L1446">1446</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1447" href="#L1447">1447</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setSentDate(Date date)
+<a class="jxr_linenumber" name="L1447" href="#L1447">1447</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setSentDate(<strong class="jxr_keyword">final</strong> Date date)
 <a class="jxr_linenumber" name="L1448" href="#L1448">1448</a>     {
 <a class="jxr_linenumber" name="L1449" href="#L1449">1449</a>         <strong class="jxr_keyword">if</strong> (date != <strong class="jxr_keyword">null</strong>)
 <a class="jxr_linenumber" name="L1450" href="#L1450">1450</a>         {
@@ -1576,7 +1576,7 @@
 <a class="jxr_linenumber" name="L1568" href="#L1568">1568</a> <em class="jxr_javadoccomment">     * @return An InternetAddress[].</em>
 <a class="jxr_linenumber" name="L1569" href="#L1569">1569</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L1570" href="#L1570">1570</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1571" href="#L1571">1571</a>     <strong class="jxr_keyword">protected</strong> InternetAddress[] toInternetAddressArray(List&lt;InternetAddress&gt; list)
+<a class="jxr_linenumber" name="L1571" href="#L1571">1571</a>     <strong class="jxr_keyword">protected</strong> InternetAddress[] toInternetAddressArray(<strong class="jxr_keyword">final</strong> List&lt;InternetAddress&gt; list)
 <a class="jxr_linenumber" name="L1572" href="#L1572">1572</a>     {
 <a class="jxr_linenumber" name="L1573" href="#L1573">1573</a>         <strong class="jxr_keyword">return</strong> list.toArray(<strong class="jxr_keyword">new</strong> InternetAddress[list.size()]);
 <a class="jxr_linenumber" name="L1574" href="#L1574">1574</a>     }
@@ -1591,10 +1591,10 @@
 <a class="jxr_linenumber" name="L1583" href="#L1583">1583</a> <em class="jxr_javadoccomment">     * @since 1.0</em>
 <a class="jxr_linenumber" name="L1584" href="#L1584">1584</a> <em class="jxr_javadoccomment">     */</em>
 <a class="jxr_linenumber" name="L1585" href="#L1585">1585</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setPopBeforeSmtp(
-<a class="jxr_linenumber" name="L1586" href="#L1586">1586</a>         <strong class="jxr_keyword">boolean</strong> newPopBeforeSmtp,
-<a class="jxr_linenumber" name="L1587" href="#L1587">1587</a>         String newPopHost,
-<a class="jxr_linenumber" name="L1588" href="#L1588">1588</a>         String newPopUsername,
-<a class="jxr_linenumber" name="L1589" href="#L1589">1589</a>         String newPopPassword)
+<a class="jxr_linenumber" name="L1586" href="#L1586">1586</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> newPopBeforeSmtp,
+<a class="jxr_linenumber" name="L1587" href="#L1587">1587</a>         <strong class="jxr_keyword">final</strong> String newPopHost,
+<a class="jxr_linenumber" name="L1588" href="#L1588">1588</a>         <strong class="jxr_keyword">final</strong> String newPopUsername,
+<a class="jxr_linenumber" name="L1589" href="#L1589">1589</a>         <strong class="jxr_keyword">final</strong> String newPopPassword)
 <a class="jxr_linenumber" name="L1590" href="#L1590">1590</a>     {
 <a class="jxr_linenumber" name="L1591" href="#L1591">1591</a>         <strong class="jxr_keyword">this</strong>.popBeforeSmtp = newPopBeforeSmtp;
 <a class="jxr_linenumber" name="L1592" href="#L1592">1592</a>         <strong class="jxr_keyword">this</strong>.popHost = newPopHost;
@@ -1634,7 +1634,7 @@
 <a class="jxr_linenumber" name="L1626" href="#L1626">1626</a> <em class="jxr_javadoccomment">     * @param ssl whether to enable the SSL transport</em>
 <a class="jxr_linenumber" name="L1627" href="#L1627">1627</a> <em class="jxr_javadoccomment">     */</em>
 <a class="jxr_linenumber" name="L1628" href="#L1628">1628</a>     @Deprecated
-<a class="jxr_linenumber" name="L1629" href="#L1629">1629</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setSSL(<strong class="jxr_keyword">boolean</strong> ssl)
+<a class="jxr_linenumber" name="L1629" href="#L1629">1629</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setSSL(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> ssl)
 <a class="jxr_linenumber" name="L1630" href="#L1630">1630</a>     {
 <a class="jxr_linenumber" name="L1631" href="#L1631">1631</a>         setSSLOnConnect(ssl);
 <a class="jxr_linenumber" name="L1632" href="#L1632">1632</a>     }
@@ -1646,7 +1646,7 @@
 <a class="jxr_linenumber" name="L1638" href="#L1638">1638</a> <em class="jxr_javadoccomment">     * @return An Email.</em>
 <a class="jxr_linenumber" name="L1639" href="#L1639">1639</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
 <a class="jxr_linenumber" name="L1640" href="#L1640">1640</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1641" href="#L1641">1641</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setSSLOnConnect(<strong class="jxr_keyword">boolean</strong> ssl)
+<a class="jxr_linenumber" name="L1641" href="#L1641">1641</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setSSLOnConnect(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> ssl)
 <a class="jxr_linenumber" name="L1642" href="#L1642">1642</a>     {
 <a class="jxr_linenumber" name="L1643" href="#L1643">1643</a>         checkSessionAlreadyInitialized();
 <a class="jxr_linenumber" name="L1644" href="#L1644">1644</a>         <strong class="jxr_keyword">this</strong>.sslOnConnect = ssl;
@@ -1672,7 +1672,7 @@
 <a class="jxr_linenumber" name="L1664" href="#L1664">1664</a> <em class="jxr_javadoccomment">     * @return An Email.</em>
 <a class="jxr_linenumber" name="L1665" href="#L1665">1665</a> <em class="jxr_javadoccomment">     * @since 1.3</em>
 <a class="jxr_linenumber" name="L1666" href="#L1666">1666</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1667" href="#L1667">1667</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setSSLCheckServerIdentity(<strong class="jxr_keyword">boolean</strong> sslCheckServerIdentity)
+<a class="jxr_linenumber" name="L1667" href="#L1667">1667</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setSSLCheckServerIdentity(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> sslCheckServerIdentity)
 <a class="jxr_linenumber" name="L1668" href="#L1668">1668</a>     {
 <a class="jxr_linenumber" name="L1669" href="#L1669">1669</a>         checkSessionAlreadyInitialized();
 <a class="jxr_linenumber" name="L1670" href="#L1670">1670</a>         <strong class="jxr_keyword">this</strong>.sslCheckServerIdentity = sslCheckServerIdentity;
@@ -1703,7 +1703,7 @@
 <a class="jxr_linenumber" name="L1695" href="#L1695">1695</a> <em class="jxr_javadoccomment">     *</em>
 <a class="jxr_linenumber" name="L1696" href="#L1696">1696</a> <em class="jxr_javadoccomment">     * @param sslSmtpPort the SSL port to use for the SMTP transport</em>
 <a class="jxr_linenumber" name="L1697" href="#L1697">1697</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1698" href="#L1698">1698</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setSslSmtpPort(String sslSmtpPort)
+<a class="jxr_linenumber" name="L1698" href="#L1698">1698</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setSslSmtpPort(<strong class="jxr_keyword">final</strong> String sslSmtpPort)
 <a class="jxr_linenumber" name="L1699" href="#L1699">1699</a>     {
 <a class="jxr_linenumber" name="L1700" href="#L1700">1700</a>         checkSessionAlreadyInitialized();
 <a class="jxr_linenumber" name="L1701" href="#L1701">1701</a>         <strong class="jxr_keyword">this</strong>.sslSmtpPort = sslSmtpPort;
@@ -1733,7 +1733,7 @@
 <a class="jxr_linenumber" name="L1725" href="#L1725">1725</a> <em class="jxr_javadoccomment">     * @return An Email.</em>
 <a class="jxr_linenumber" name="L1726" href="#L1726">1726</a> <em class="jxr_javadoccomment">     * @since 1.3.2</em>
 <a class="jxr_linenumber" name="L1727" href="#L1727">1727</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1728" href="#L1728">1728</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setSendPartial(<strong class="jxr_keyword">boolean</strong> sendPartial)
+<a class="jxr_linenumber" name="L1728" href="#L1728">1728</a>     <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/commons/mail/Email.html">Email</a> setSendPartial(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> sendPartial)
 <a class="jxr_linenumber" name="L1729" href="#L1729">1729</a>     {
 <a class="jxr_linenumber" name="L1730" href="#L1730">1730</a>         checkSessionAlreadyInitialized();
 <a class="jxr_linenumber" name="L1731" href="#L1731">1731</a>         <strong class="jxr_keyword">this</strong>.sendPartial = sendPartial;
@@ -1798,7 +1798,7 @@
 <a class="jxr_linenumber" name="L1790" href="#L1790">1790</a> <em class="jxr_javadoccomment">     * @param socketConnectionTimeout the connection timeout</em>
 <a class="jxr_linenumber" name="L1791" href="#L1791">1791</a> <em class="jxr_javadoccomment">     * @since 1.2</em>
 <a class="jxr_linenumber" name="L1792" href="#L1792">1792</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1793" href="#L1793">1793</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setSocketConnectionTimeout(<strong class="jxr_keyword">int</strong> socketConnectionTimeout)
+<a class="jxr_linenumber" name="L1793" href="#L1793">1793</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setSocketConnectionTimeout(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> socketConnectionTimeout)
 <a class="jxr_linenumber" name="L1794" href="#L1794">1794</a>     {
 <a class="jxr_linenumber" name="L1795" href="#L1795">1795</a>         checkSessionAlreadyInitialized();
 <a class="jxr_linenumber" name="L1796" href="#L1796">1796</a>         <strong class="jxr_keyword">this</strong>.socketConnectionTimeout = socketConnectionTimeout;
@@ -1822,7 +1822,7 @@
 <a class="jxr_linenumber" name="L1814" href="#L1814">1814</a> <em class="jxr_javadoccomment">     * @param socketTimeout the socket I/O timeout</em>
 <a class="jxr_linenumber" name="L1815" href="#L1815">1815</a> <em class="jxr_javadoccomment">     * @since 1.2</em>
 <a class="jxr_linenumber" name="L1816" href="#L1816">1816</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1817" href="#L1817">1817</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setSocketTimeout(<strong class="jxr_keyword">int</strong> socketTimeout)
+<a class="jxr_linenumber" name="L1817" href="#L1817">1817</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setSocketTimeout(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> socketTimeout)
 <a class="jxr_linenumber" name="L1818" href="#L1818">1818</a>     {
 <a class="jxr_linenumber" name="L1819" href="#L1819">1819</a>         checkSessionAlreadyInitialized();
 <a class="jxr_linenumber" name="L1820" href="#L1820">1820</a>         <strong class="jxr_keyword">this</strong>.socketTimeout = socketTimeout;
@@ -1835,7 +1835,7 @@
 <a class="jxr_linenumber" name="L1827" href="#L1827">1827</a> <em class="jxr_javadoccomment">     * @param aSession mail session to be used</em>
 <a class="jxr_linenumber" name="L1828" href="#L1828">1828</a> <em class="jxr_javadoccomment">     * @return the newly created message</em>
 <a class="jxr_linenumber" name="L1829" href="#L1829">1829</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1830" href="#L1830">1830</a>     <strong class="jxr_keyword">protected</strong> MimeMessage createMimeMessage(Session aSession)
+<a class="jxr_linenumber" name="L1830" href="#L1830">1830</a>     <strong class="jxr_keyword">protected</strong> MimeMessage createMimeMessage(<strong class="jxr_keyword">final</strong> Session aSession)
 <a class="jxr_linenumber" name="L1831" href="#L1831">1831</a>     {
 <a class="jxr_linenumber" name="L1832" href="#L1832">1832</a>         <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> MimeMessage(aSession);
 <a class="jxr_linenumber" name="L1833" href="#L1833">1833</a>     }
@@ -1848,7 +1848,7 @@
 <a class="jxr_linenumber" name="L1840" href="#L1840">1840</a> <em class="jxr_javadoccomment">     * @return the folded header value</em>
 <a class="jxr_linenumber" name="L1841" href="#L1841">1841</a> <em class="jxr_javadoccomment">     * @throws IllegalArgumentException if either the name or value is null or empty</em>
 <a class="jxr_linenumber" name="L1842" href="#L1842">1842</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1843" href="#L1843">1843</a>     <strong class="jxr_keyword">private</strong> String createFoldedHeaderValue(String name, Object value)
+<a class="jxr_linenumber" name="L1843" href="#L1843">1843</a>     <strong class="jxr_keyword">private</strong> String createFoldedHeaderValue(<strong class="jxr_keyword">final</strong> String name, <strong class="jxr_keyword">final</strong> Object value)
 <a class="jxr_linenumber" name="L1844" href="#L1844">1844</a>     {
 <a class="jxr_linenumber" name="L1845" href="#L1845">1845</a>         String result;
 <a class="jxr_linenumber" name="L1846" href="#L1846">1846</a> 
@@ -1865,7 +1865,7 @@
 <a class="jxr_linenumber" name="L1857" href="#L1857">1857</a>         {
 <a class="jxr_linenumber" name="L1858" href="#L1858">1858</a>             result = MimeUtility.fold(name.length() + 2, MimeUtility.encodeText(value.toString(), <strong class="jxr_keyword">this</strong>.charset, <strong class="jxr_keyword">null</strong>));
 <a class="jxr_linenumber" name="L1859" href="#L1859">1859</a>         }
-<a class="jxr_linenumber" name="L1860" href="#L1860">1860</a>         <strong class="jxr_keyword">catch</strong> (UnsupportedEncodingException e)
+<a class="jxr_linenumber" name="L1860" href="#L1860">1860</a>         <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> UnsupportedEncodingException e)
 <a class="jxr_linenumber" name="L1861" href="#L1861">1861</a>         {
 <a class="jxr_linenumber" name="L1862" href="#L1862">1862</a>             result = value.toString();
 <a class="jxr_linenumber" name="L1863" href="#L1863">1863</a>         }
@@ -1882,7 +1882,7 @@
 <a class="jxr_linenumber" name="L1874" href="#L1874">1874</a> <em class="jxr_javadoccomment">     * @return An internet address.</em>
 <a class="jxr_linenumber" name="L1875" href="#L1875">1875</a> <em class="jxr_javadoccomment">     * @throws EmailException Thrown when the supplied address, name or charset were invalid.</em>
 <a class="jxr_linenumber" name="L1876" href="#L1876">1876</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L1877" href="#L1877">1877</a>     <strong class="jxr_keyword">private</strong> InternetAddress createInternetAddress(String email, String name, String charsetName)
+<a class="jxr_linenumber" name="L1877" href="#L1877">1877</a>     <strong class="jxr_keyword">private</strong> InternetAddress createInternetAddress(<strong class="jxr_keyword">final</strong> String email, <strong class="jxr_keyword">final</strong> String name, <strong class="jxr_keyword">final</strong> String charsetName)
 <a class="jxr_linenumber" name="L1878" href="#L1878">1878</a>         <strong class="jxr_keyword">throws</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>
 <a class="jxr_linenumber" name="L1879" href="#L1879">1879</a>     {
 <a class="jxr_linenumber" name="L1880" href="#L1880">1880</a>         InternetAddress address = <strong class="jxr_keyword">null</strong>;
@@ -1903,7 +1903,7 @@
 <a class="jxr_linenumber" name="L1895" href="#L1895">1895</a>                 {
 <a class="jxr_linenumber" name="L1896" href="#L1896">1896</a>                     <em class="jxr_comment">// canonicalize the charset name and make sure</em>
 <a class="jxr_linenumber" name="L1897" href="#L1897">1897</a>                     <em class="jxr_comment">// the current platform supports it.</em>
-<a class="jxr_linenumber" name="L1898" href="#L1898">1898</a>                     Charset set = Charset.forName(charsetName);
+<a class="jxr_linenumber" name="L1898" href="#L1898">1898</a>                     <strong class="jxr_keyword">final</strong> Charset set = Charset.forName(charsetName);
 <a class="jxr_linenumber" name="L1899" href="#L1899">1899</a>                     address.setPersonal(name, set.name());
 <a class="jxr_linenumber" name="L1900" href="#L1900">1900</a>                 }
 <a class="jxr_linenumber" name="L1901" href="#L1901">1901</a>             }
@@ -1912,11 +1912,11 @@
 <a class="jxr_linenumber" name="L1904" href="#L1904">1904</a>             <em class="jxr_comment">// it will throw AddressException.</em>
 <a class="jxr_linenumber" name="L1905" href="#L1905">1905</a>             address.validate();
 <a class="jxr_linenumber" name="L1906" href="#L1906">1906</a>         }
-<a class="jxr_linenumber" name="L1907" href="#L1907">1907</a>         <strong class="jxr_keyword">catch</strong> (AddressException e)
+<a class="jxr_linenumber" name="L1907" href="#L1907">1907</a>         <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> AddressException e)
 <a class="jxr_linenumber" name="L1908" href="#L1908">1908</a>         {
 <a class="jxr_linenumber" name="L1909" href="#L1909">1909</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>(e);
 <a class="jxr_linenumber" name="L1910" href="#L1910">1910</a>         }
-<a class="jxr_linenumber" name="L1911" href="#L1911">1911</a>         <strong class="jxr_keyword">catch</strong> (UnsupportedEncodingException e)
+<a class="jxr_linenumber" name="L1911" href="#L1911">1911</a>         <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> UnsupportedEncodingException e)
 <a class="jxr_linenumber" name="L1912" href="#L1912">1912</a>         {
 <a class="jxr_linenumber" name="L1913" href="#L1913">1913</a>             <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/mail/EmailException.html">EmailException</a>(e);
 <a class="jxr_linenumber" name="L1914" href="#L1914">1914</a>         }



Mime
View raw message