commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r915608 [19/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-test/org/apache/commons/mail/AbstractEmailTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/xref-test/org/apache/commons/mail/AbstractEmailTest.html (original)
+++ websites/production/commons/content/proper/commons-email/xref-test/org/apache/commons/mail/AbstractEmailTest.html Wed Jul  9 20:46:21 2014
@@ -152,11 +152,11 @@
 <a class="jxr_linenumber" name="L144" href="#L144">144</a> <em class="jxr_javadoccomment">     * @throws IOException writing the email failed</em>
 <a class="jxr_linenumber" name="L145" href="#L145">145</a> <em class="jxr_javadoccomment">     * @throws MessagingException writing the email failed</em>
 <a class="jxr_linenumber" name="L146" href="#L146">146</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L147" href="#L147">147</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> saveEmailToFile(WiserMessage email) <strong class="jxr_keyword">throws</strong> IOException, MessagingException
+<a class="jxr_linenumber" name="L147" href="#L147">147</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> saveEmailToFile(<strong class="jxr_keyword">final</strong> WiserMessage email) <strong class="jxr_keyword">throws</strong> IOException, MessagingException
 <a class="jxr_linenumber" name="L148" href="#L148">148</a>     {
-<a class="jxr_linenumber" name="L149" href="#L149">149</a>         <strong class="jxr_keyword">int</strong> currCounter = fileNameCounter++ % 10;
-<a class="jxr_linenumber" name="L150" href="#L150">150</a>         String emailFileName = <span class="jxr_string">"email"</span> + <strong class="jxr_keyword">new</strong> Date().getTime() + <span class="jxr_string">"-"</span> + currCounter + <span class="jxr_string">".eml"</span>;
-<a class="jxr_linenumber" name="L151" href="#L151">151</a>         File emailFile = <strong class="jxr_keyword">new</strong> File(emailOutputDir, emailFileName);
+<a class="jxr_linenumber" name="L149" href="#L149">149</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> currCounter = fileNameCounter++ % 10;
+<a class="jxr_linenumber" name="L150" href="#L150">150</a>         <strong class="jxr_keyword">final</strong> String emailFileName = <span class="jxr_string">"email"</span> + <strong class="jxr_keyword">new</strong> Date().getTime() + <span class="jxr_string">"-"</span> + currCounter + <span class="jxr_string">".eml"</span>;
+<a class="jxr_linenumber" name="L151" href="#L151">151</a>         <strong class="jxr_keyword">final</strong> File emailFile = <strong class="jxr_keyword">new</strong> File(emailOutputDir, emailFileName);
 <a class="jxr_linenumber" name="L152" href="#L152">152</a>         EmailUtils.writeMimeMessage(emailFile, email.getMimeMessage() );
 <a class="jxr_linenumber" name="L153" href="#L153">153</a>     }
 <a class="jxr_linenumber" name="L154" href="#L154">154</a> 
@@ -164,12 +164,12 @@
 <a class="jxr_linenumber" name="L156" href="#L156">156</a> <em class="jxr_javadoccomment">     * @param intMsgNo the message to retrieve</em>
 <a class="jxr_linenumber" name="L157" href="#L157">157</a> <em class="jxr_javadoccomment">     * @return message as string</em>
 <a class="jxr_linenumber" name="L158" href="#L158">158</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L159" href="#L159">159</a>     <strong class="jxr_keyword">public</strong> String getMessageAsString(<strong class="jxr_keyword">int</strong> intMsgNo)
+<a class="jxr_linenumber" name="L159" href="#L159">159</a>     <strong class="jxr_keyword">public</strong> String getMessageAsString(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> intMsgNo)
 <a class="jxr_linenumber" name="L160" href="#L160">160</a>     {
-<a class="jxr_linenumber" name="L161" href="#L161">161</a>         List&lt;?&gt; receivedMessages = fakeMailServer.getMessages();
+<a class="jxr_linenumber" name="L161" href="#L161">161</a>         <strong class="jxr_keyword">final</strong> List&lt;?&gt; receivedMessages = fakeMailServer.getMessages();
 <a class="jxr_linenumber" name="L162" href="#L162">162</a>         assertTrue(<span class="jxr_string">"mail server didn't get enough messages"</span>, receivedMessages.size() &gt;= intMsgNo);
 <a class="jxr_linenumber" name="L163" href="#L163">163</a> 
-<a class="jxr_linenumber" name="L164" href="#L164">164</a>         WiserMessage emailMessage = (WiserMessage) receivedMessages.get(intMsgNo);
+<a class="jxr_linenumber" name="L164" href="#L164">164</a>         <strong class="jxr_keyword">final</strong> WiserMessage emailMessage = (WiserMessage) receivedMessages.get(intMsgNo);
 <a class="jxr_linenumber" name="L165" href="#L165">165</a> 
 <a class="jxr_linenumber" name="L166" href="#L166">166</a>         <strong class="jxr_keyword">if</strong> (emailMessage != <strong class="jxr_keyword">null</strong>)
 <a class="jxr_linenumber" name="L167" href="#L167">167</a>         {
@@ -177,7 +177,7 @@
 <a class="jxr_linenumber" name="L169" href="#L169">169</a>             {
 <a class="jxr_linenumber" name="L170" href="#L170">170</a>                 <strong class="jxr_keyword">return</strong> serializeEmailMessage(emailMessage);
 <a class="jxr_linenumber" name="L171" href="#L171">171</a>             }
-<a class="jxr_linenumber" name="L172" href="#L172">172</a>             <strong class="jxr_keyword">catch</strong> (Exception e)
+<a class="jxr_linenumber" name="L172" href="#L172">172</a>             <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> Exception e)
 <a class="jxr_linenumber" name="L173" href="#L173">173</a>             {
 <a class="jxr_linenumber" name="L174" href="#L174">174</a>                 <em class="jxr_comment">// ignore, since the test will fail on an empty string return</em>
 <a class="jxr_linenumber" name="L175" href="#L175">175</a>             }
@@ -203,7 +203,7 @@
 <a class="jxr_linenumber" name="L195" href="#L195">195</a> 
 <a class="jxr_linenumber" name="L196" href="#L196">196</a>             assertFalse(<span class="jxr_string">"fake mail server didn't start"</span>, isMailServerStopped(fakeMailServer));
 <a class="jxr_linenumber" name="L197" href="#L197">197</a> 
-<a class="jxr_linenumber" name="L198" href="#L198">198</a>             Date dtStartWait = <strong class="jxr_keyword">new</strong> Date();
+<a class="jxr_linenumber" name="L198" href="#L198">198</a>             <strong class="jxr_keyword">final</strong> Date dtStartWait = <strong class="jxr_keyword">new</strong> Date();
 <a class="jxr_linenumber" name="L199" href="#L199">199</a>             <strong class="jxr_keyword">while</strong> (isMailServerStopped(fakeMailServer))
 <a class="jxr_linenumber" name="L200" href="#L200">200</a>             {
 <a class="jxr_linenumber" name="L201" href="#L201">201</a>                 <em class="jxr_comment">// test for connected</em>
@@ -214,7 +214,7 @@
 <a class="jxr_linenumber" name="L206" href="#L206">206</a>                 }
 <a class="jxr_linenumber" name="L207" href="#L207">207</a> 
 <a class="jxr_linenumber" name="L208" href="#L208">208</a>                 <em class="jxr_comment">// test for timeout</em>
-<a class="jxr_linenumber" name="L209" href="#L209">209</a>                 <strong class="jxr_keyword">if</strong> ((dtStartWait.getTime() + EmailConfiguration.TIME_OUT)
+<a class="jxr_linenumber" name="L209" href="#L209">209</a>                 <strong class="jxr_keyword">if</strong> (dtStartWait.getTime() + EmailConfiguration.TIME_OUT
 <a class="jxr_linenumber" name="L210" href="#L210">210</a>                     &lt;= <strong class="jxr_keyword">new</strong> Date().getTime())
 <a class="jxr_linenumber" name="L211" href="#L211">211</a>                 {
 <a class="jxr_linenumber" name="L212" href="#L212">212</a>                     fail(<span class="jxr_string">"Mail server failed to start"</span>);
@@ -236,18 +236,18 @@
 <a class="jxr_linenumber" name="L228" href="#L228">228</a> <em class="jxr_javadoccomment">     * @throws IOException Exception</em>
 <a class="jxr_linenumber" name="L229" href="#L229">229</a> <em class="jxr_javadoccomment">     */</em>
 <a class="jxr_linenumber" name="L230" href="#L230">230</a>     <strong class="jxr_keyword">protected</strong> WiserMessage validateSend(
-<a class="jxr_linenumber" name="L231" href="#L231">231</a>         Wiser mailServer,
-<a class="jxr_linenumber" name="L232" href="#L232">232</a>         String strSubject,
-<a class="jxr_linenumber" name="L233" href="#L233">233</a>         InternetAddress fromAdd,
-<a class="jxr_linenumber" name="L234" href="#L234">234</a>         List&lt;InternetAddress&gt; toAdd,
-<a class="jxr_linenumber" name="L235" href="#L235">235</a>         List&lt;InternetAddress&gt; ccAdd,
-<a class="jxr_linenumber" name="L236" href="#L236">236</a>         List&lt;InternetAddress&gt; bccAdd,
-<a class="jxr_linenumber" name="L237" href="#L237">237</a>         <strong class="jxr_keyword">boolean</strong> boolSaveToFile)
+<a class="jxr_linenumber" name="L231" href="#L231">231</a>         <strong class="jxr_keyword">final</strong> Wiser mailServer,
+<a class="jxr_linenumber" name="L232" href="#L232">232</a>         <strong class="jxr_keyword">final</strong> String strSubject,
+<a class="jxr_linenumber" name="L233" href="#L233">233</a>         <strong class="jxr_keyword">final</strong> InternetAddress fromAdd,
+<a class="jxr_linenumber" name="L234" href="#L234">234</a>         <strong class="jxr_keyword">final</strong> List&lt;InternetAddress&gt; toAdd,
+<a class="jxr_linenumber" name="L235" href="#L235">235</a>         <strong class="jxr_keyword">final</strong> List&lt;InternetAddress&gt; ccAdd,
+<a class="jxr_linenumber" name="L236" href="#L236">236</a>         <strong class="jxr_keyword">final</strong> List&lt;InternetAddress&gt; bccAdd,
+<a class="jxr_linenumber" name="L237" href="#L237">237</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> boolSaveToFile)
 <a class="jxr_linenumber" name="L238" href="#L238">238</a>         <strong class="jxr_keyword">throws</strong> IOException
 <a class="jxr_linenumber" name="L239" href="#L239">239</a>     {
 <a class="jxr_linenumber" name="L240" href="#L240">240</a>         assertTrue(<span class="jxr_string">"mail server doesn't contain expected message"</span>,
 <a class="jxr_linenumber" name="L241" href="#L241">241</a>                 mailServer.getMessages().size() == 1);
-<a class="jxr_linenumber" name="L242" href="#L242">242</a>         WiserMessage emailMessage = mailServer.getMessages().get(0);
+<a class="jxr_linenumber" name="L242" href="#L242">242</a>         <strong class="jxr_keyword">final</strong> WiserMessage emailMessage = mailServer.getMessages().get(0);
 <a class="jxr_linenumber" name="L243" href="#L243">243</a> 
 <a class="jxr_linenumber" name="L244" href="#L244">244</a>         <strong class="jxr_keyword">if</strong> (boolSaveToFile)
 <a class="jxr_linenumber" name="L245" href="#L245">245</a>         {
@@ -255,9 +255,9 @@
 <a class="jxr_linenumber" name="L247" href="#L247">247</a>             {
 <a class="jxr_linenumber" name="L248" href="#L248">248</a>                 <strong class="jxr_keyword">this</strong>.saveEmailToFile(emailMessage);
 <a class="jxr_linenumber" name="L249" href="#L249">249</a>             }
-<a class="jxr_linenumber" name="L250" href="#L250">250</a>             <strong class="jxr_keyword">catch</strong>(MessagingException me)
+<a class="jxr_linenumber" name="L250" href="#L250">250</a>             <strong class="jxr_keyword">catch</strong>(<strong class="jxr_keyword">final</strong> MessagingException me)
 <a class="jxr_linenumber" name="L251" href="#L251">251</a>             {
-<a class="jxr_linenumber" name="L252" href="#L252">252</a>                 IllegalStateException ise =
+<a class="jxr_linenumber" name="L252" href="#L252">252</a>                 <strong class="jxr_keyword">final</strong> IllegalStateException ise =
 <a class="jxr_linenumber" name="L253" href="#L253">253</a>                     <strong class="jxr_keyword">new</strong> IllegalStateException(<span class="jxr_string">"caught MessagingException during saving the email"</span>);
 <a class="jxr_linenumber" name="L254" href="#L254">254</a>                 ise.initCause(me);
 <a class="jxr_linenumber" name="L255" href="#L255">255</a>                 <strong class="jxr_keyword">throw</strong> ise;
@@ -267,7 +267,7 @@
 <a class="jxr_linenumber" name="L259" href="#L259">259</a>         <strong class="jxr_keyword">try</strong>
 <a class="jxr_linenumber" name="L260" href="#L260">260</a>         {
 <a class="jxr_linenumber" name="L261" href="#L261">261</a>             <em class="jxr_comment">// get the MimeMessage</em>
-<a class="jxr_linenumber" name="L262" href="#L262">262</a>             MimeMessage mimeMessage = emailMessage.getMimeMessage();
+<a class="jxr_linenumber" name="L262" href="#L262">262</a>             <strong class="jxr_keyword">final</strong> MimeMessage mimeMessage = emailMessage.getMimeMessage();
 <a class="jxr_linenumber" name="L263" href="#L263">263</a> 
 <a class="jxr_linenumber" name="L264" href="#L264">264</a>             <em class="jxr_comment">// test subject</em>
 <a class="jxr_linenumber" name="L265" href="#L265">265</a>             assertEquals(<span class="jxr_string">"got wrong subject from mail"</span>,
@@ -295,9 +295,9 @@
 <a class="jxr_linenumber" name="L287" href="#L287">287</a>                     bccAdd.toString().contains(mimeMessage.getHeader(<span class="jxr_string">"Bcc"</span>, <strong class="jxr_keyword">null</strong>)));
 <a class="jxr_linenumber" name="L288" href="#L288">288</a>             }
 <a class="jxr_linenumber" name="L289" href="#L289">289</a>         }
-<a class="jxr_linenumber" name="L290" href="#L290">290</a>         <strong class="jxr_keyword">catch</strong> (MessagingException me)
+<a class="jxr_linenumber" name="L290" href="#L290">290</a>         <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> MessagingException me)
 <a class="jxr_linenumber" name="L291" href="#L291">291</a>         {
-<a class="jxr_linenumber" name="L292" href="#L292">292</a>             IllegalStateException ise =
+<a class="jxr_linenumber" name="L292" href="#L292">292</a>             <strong class="jxr_keyword">final</strong> IllegalStateException ise =
 <a class="jxr_linenumber" name="L293" href="#L293">293</a>                 <strong class="jxr_keyword">new</strong> IllegalStateException(<span class="jxr_string">"caught MessagingException in validateSend()"</span>);
 <a class="jxr_linenumber" name="L294" href="#L294">294</a>             ise.initCause(me);
 <a class="jxr_linenumber" name="L295" href="#L295">295</a>             <strong class="jxr_keyword">throw</strong> ise;
@@ -319,18 +319,18 @@
 <a class="jxr_linenumber" name="L311" href="#L311">311</a> <em class="jxr_javadoccomment">     * @throws IOException Exception</em>
 <a class="jxr_linenumber" name="L312" href="#L312">312</a> <em class="jxr_javadoccomment">     */</em>
 <a class="jxr_linenumber" name="L313" href="#L313">313</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> validateSend(
-<a class="jxr_linenumber" name="L314" href="#L314">314</a>         Wiser mailServer,
-<a class="jxr_linenumber" name="L315" href="#L315">315</a>         String strSubject,
-<a class="jxr_linenumber" name="L316" href="#L316">316</a>         Multipart content,
-<a class="jxr_linenumber" name="L317" href="#L317">317</a>         InternetAddress fromAdd,
-<a class="jxr_linenumber" name="L318" href="#L318">318</a>         List&lt;InternetAddress&gt; toAdd,
-<a class="jxr_linenumber" name="L319" href="#L319">319</a>         List&lt;InternetAddress&gt; ccAdd,
-<a class="jxr_linenumber" name="L320" href="#L320">320</a>         List&lt;InternetAddress&gt; bccAdd,
-<a class="jxr_linenumber" name="L321" href="#L321">321</a>         <strong class="jxr_keyword">boolean</strong> boolSaveToFile)
+<a class="jxr_linenumber" name="L314" href="#L314">314</a>         <strong class="jxr_keyword">final</strong> Wiser mailServer,
+<a class="jxr_linenumber" name="L315" href="#L315">315</a>         <strong class="jxr_keyword">final</strong> String strSubject,
+<a class="jxr_linenumber" name="L316" href="#L316">316</a>         <strong class="jxr_keyword">final</strong> Multipart content,
+<a class="jxr_linenumber" name="L317" href="#L317">317</a>         <strong class="jxr_keyword">final</strong> InternetAddress fromAdd,
+<a class="jxr_linenumber" name="L318" href="#L318">318</a>         <strong class="jxr_keyword">final</strong> List&lt;InternetAddress&gt; toAdd,
+<a class="jxr_linenumber" name="L319" href="#L319">319</a>         <strong class="jxr_keyword">final</strong> List&lt;InternetAddress&gt; ccAdd,
+<a class="jxr_linenumber" name="L320" href="#L320">320</a>         <strong class="jxr_keyword">final</strong> List&lt;InternetAddress&gt; bccAdd,
+<a class="jxr_linenumber" name="L321" href="#L321">321</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> boolSaveToFile)
 <a class="jxr_linenumber" name="L322" href="#L322">322</a>         <strong class="jxr_keyword">throws</strong> IOException
 <a class="jxr_linenumber" name="L323" href="#L323">323</a>     {
 <a class="jxr_linenumber" name="L324" href="#L324">324</a>         <em class="jxr_comment">// test other properties</em>
-<a class="jxr_linenumber" name="L325" href="#L325">325</a>         WiserMessage emailMessage = <strong class="jxr_keyword">this</strong>.validateSend(
+<a class="jxr_linenumber" name="L325" href="#L325">325</a>         <strong class="jxr_keyword">final</strong> WiserMessage emailMessage = <strong class="jxr_keyword">this</strong>.validateSend(
 <a class="jxr_linenumber" name="L326" href="#L326">326</a>             mailServer,
 <a class="jxr_linenumber" name="L327" href="#L327">327</a>             strSubject,
 <a class="jxr_linenumber" name="L328" href="#L328">328</a>             fromAdd,
@@ -342,12 +342,12 @@
 <a class="jxr_linenumber" name="L334" href="#L334">334</a>         <em class="jxr_comment">// test message content</em>
 <a class="jxr_linenumber" name="L335" href="#L335">335</a> 
 <a class="jxr_linenumber" name="L336" href="#L336">336</a>         <em class="jxr_comment">// get sent email content</em>
-<a class="jxr_linenumber" name="L337" href="#L337">337</a>         String strSentContent =
+<a class="jxr_linenumber" name="L337" href="#L337">337</a>         <strong class="jxr_keyword">final</strong> String strSentContent =
 <a class="jxr_linenumber" name="L338" href="#L338">338</a>             content.getContentType();
 <a class="jxr_linenumber" name="L339" href="#L339">339</a>         <em class="jxr_comment">// get received email content (chop off the auto-added \n</em>
 <a class="jxr_linenumber" name="L340" href="#L340">340</a>         <em class="jxr_comment">// and -- (front and end)</em>
-<a class="jxr_linenumber" name="L341" href="#L341">341</a>         String emailMessageBody = getMessageBody(emailMessage);
-<a class="jxr_linenumber" name="L342" href="#L342">342</a>         String strMessageBody =
+<a class="jxr_linenumber" name="L341" href="#L341">341</a>         <strong class="jxr_keyword">final</strong> String emailMessageBody = getMessageBody(emailMessage);
+<a class="jxr_linenumber" name="L342" href="#L342">342</a>         <strong class="jxr_keyword">final</strong> String strMessageBody =
 <a class="jxr_linenumber" name="L343" href="#L343">343</a>             emailMessageBody.substring(AbstractEmailTest.BODY_START_PAD,
 <a class="jxr_linenumber" name="L344" href="#L344">344</a>                                        emailMessageBody.length()
 <a class="jxr_linenumber" name="L345" href="#L345">345</a>                                        - AbstractEmailTest.BODY_END_PAD);
@@ -368,18 +368,18 @@
 <a class="jxr_linenumber" name="L360" href="#L360">360</a> <em class="jxr_javadoccomment">     * @throws IOException Exception</em>
 <a class="jxr_linenumber" name="L361" href="#L361">361</a> <em class="jxr_javadoccomment">     */</em>
 <a class="jxr_linenumber" name="L362" href="#L362">362</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> validateSend(
-<a class="jxr_linenumber" name="L363" href="#L363">363</a>         Wiser mailServer,
-<a class="jxr_linenumber" name="L364" href="#L364">364</a>         String strSubject,
-<a class="jxr_linenumber" name="L365" href="#L365">365</a>         String strMessage,
-<a class="jxr_linenumber" name="L366" href="#L366">366</a>         InternetAddress fromAdd,
-<a class="jxr_linenumber" name="L367" href="#L367">367</a>         List&lt;InternetAddress&gt; toAdd,
-<a class="jxr_linenumber" name="L368" href="#L368">368</a>         List&lt;InternetAddress&gt; ccAdd,
-<a class="jxr_linenumber" name="L369" href="#L369">369</a>         List&lt;InternetAddress&gt; bccAdd,
-<a class="jxr_linenumber" name="L370" href="#L370">370</a>         <strong class="jxr_keyword">boolean</strong> boolSaveToFile)
+<a class="jxr_linenumber" name="L363" href="#L363">363</a>         <strong class="jxr_keyword">final</strong> Wiser mailServer,
+<a class="jxr_linenumber" name="L364" href="#L364">364</a>         <strong class="jxr_keyword">final</strong> String strSubject,
+<a class="jxr_linenumber" name="L365" href="#L365">365</a>         <strong class="jxr_keyword">final</strong> String strMessage,
+<a class="jxr_linenumber" name="L366" href="#L366">366</a>         <strong class="jxr_keyword">final</strong> InternetAddress fromAdd,
+<a class="jxr_linenumber" name="L367" href="#L367">367</a>         <strong class="jxr_keyword">final</strong> List&lt;InternetAddress&gt; toAdd,
+<a class="jxr_linenumber" name="L368" href="#L368">368</a>         <strong class="jxr_keyword">final</strong> List&lt;InternetAddress&gt; ccAdd,
+<a class="jxr_linenumber" name="L369" href="#L369">369</a>         <strong class="jxr_keyword">final</strong> List&lt;InternetAddress&gt; bccAdd,
+<a class="jxr_linenumber" name="L370" href="#L370">370</a>         <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> boolSaveToFile)
 <a class="jxr_linenumber" name="L371" href="#L371">371</a>         <strong class="jxr_keyword">throws</strong> IOException
 <a class="jxr_linenumber" name="L372" href="#L372">372</a>     {
 <a class="jxr_linenumber" name="L373" href="#L373">373</a>         <em class="jxr_comment">// test other properties</em>
-<a class="jxr_linenumber" name="L374" href="#L374">374</a>         WiserMessage emailMessage = <strong class="jxr_keyword">this</strong>.validateSend(
+<a class="jxr_linenumber" name="L374" href="#L374">374</a>         <strong class="jxr_keyword">final</strong> WiserMessage emailMessage = <strong class="jxr_keyword">this</strong>.validateSend(
 <a class="jxr_linenumber" name="L375" href="#L375">375</a>             mailServer,
 <a class="jxr_linenumber" name="L376" href="#L376">376</a>             strSubject,
 <a class="jxr_linenumber" name="L377" href="#L377">377</a>             fromAdd,
@@ -409,7 +409,7 @@
 <a class="jxr_linenumber" name="L401" href="#L401">401</a> <em class="jxr_javadoccomment">     *             {@link MimeMessage#getDataHandler()}</em>
 <a class="jxr_linenumber" name="L402" href="#L402">402</a> <em class="jxr_javadoccomment">     * @since 1.1</em>
 <a class="jxr_linenumber" name="L403" href="#L403">403</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L404" href="#L404">404</a>     <strong class="jxr_keyword">private</strong> String serializeEmailMessage(WiserMessage wiserMessage)
+<a class="jxr_linenumber" name="L404" href="#L404">404</a>     <strong class="jxr_keyword">private</strong> String serializeEmailMessage(<strong class="jxr_keyword">final</strong> WiserMessage wiserMessage)
 <a class="jxr_linenumber" name="L405" href="#L405">405</a>             <strong class="jxr_keyword">throws</strong> MessagingException, IOException
 <a class="jxr_linenumber" name="L406" href="#L406">406</a>     {
 <a class="jxr_linenumber" name="L407" href="#L407">407</a>         <strong class="jxr_keyword">if</strong> (wiserMessage == <strong class="jxr_keyword">null</strong>)
@@ -417,14 +417,14 @@
 <a class="jxr_linenumber" name="L409" href="#L409">409</a>             <strong class="jxr_keyword">return</strong> <span class="jxr_string">""</span>;
 <a class="jxr_linenumber" name="L410" href="#L410">410</a>         }
 <a class="jxr_linenumber" name="L411" href="#L411">411</a> 
-<a class="jxr_linenumber" name="L412" href="#L412">412</a>         StringBuffer serializedEmail = <strong class="jxr_keyword">new</strong> StringBuffer();
-<a class="jxr_linenumber" name="L413" href="#L413">413</a>         MimeMessage message = wiserMessage.getMimeMessage();
+<a class="jxr_linenumber" name="L412" href="#L412">412</a>         <strong class="jxr_keyword">final</strong> StringBuffer serializedEmail = <strong class="jxr_keyword">new</strong> StringBuffer();
+<a class="jxr_linenumber" name="L413" href="#L413">413</a>         <strong class="jxr_keyword">final</strong> MimeMessage message = wiserMessage.getMimeMessage();
 <a class="jxr_linenumber" name="L414" href="#L414">414</a> 
 <a class="jxr_linenumber" name="L415" href="#L415">415</a>         <em class="jxr_comment">// Serialize the headers</em>
-<a class="jxr_linenumber" name="L416" href="#L416">416</a>         <strong class="jxr_keyword">for</strong> (Enumeration&lt;?&gt; headers = message.getAllHeaders(); headers
+<a class="jxr_linenumber" name="L416" href="#L416">416</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> Enumeration&lt;?&gt; headers = message.getAllHeaders(); headers
 <a class="jxr_linenumber" name="L417" href="#L417">417</a>                 .hasMoreElements();)
 <a class="jxr_linenumber" name="L418" href="#L418">418</a>         {
-<a class="jxr_linenumber" name="L419" href="#L419">419</a>             Header header = (Header) headers.nextElement();
+<a class="jxr_linenumber" name="L419" href="#L419">419</a>             <strong class="jxr_keyword">final</strong> Header header = (Header) headers.nextElement();
 <a class="jxr_linenumber" name="L420" href="#L420">420</a>             serializedEmail.append(header.getName());
 <a class="jxr_linenumber" name="L421" href="#L421">421</a>             serializedEmail.append(<span class="jxr_string">": "</span>);
 <a class="jxr_linenumber" name="L422" href="#L422">422</a>             serializedEmail.append(header.getValue());
@@ -432,7 +432,7 @@
 <a class="jxr_linenumber" name="L424" href="#L424">424</a>         }
 <a class="jxr_linenumber" name="L425" href="#L425">425</a> 
 <a class="jxr_linenumber" name="L426" href="#L426">426</a>         <em class="jxr_comment">// Serialize the body</em>
-<a class="jxr_linenumber" name="L427" href="#L427">427</a>         byte[] messageBody = getMessageBodyBytes(message);
+<a class="jxr_linenumber" name="L427" href="#L427">427</a>         <strong class="jxr_keyword">final</strong> byte[] messageBody = getMessageBodyBytes(message);
 <a class="jxr_linenumber" name="L428" href="#L428">428</a> 
 <a class="jxr_linenumber" name="L429" href="#L429">429</a>         serializedEmail.append(LINE_SEPARATOR);
 <a class="jxr_linenumber" name="L430" href="#L430">430</a>         serializedEmail.append(messageBody);
@@ -452,7 +452,7 @@
 <a class="jxr_linenumber" name="L444" href="#L444">444</a> <em class="jxr_javadoccomment">     *             {@link DataHandler#writeTo(java.io.OutputStream)}.</em>
 <a class="jxr_linenumber" name="L445" href="#L445">445</a> <em class="jxr_javadoccomment">     * @since 1.1</em>
 <a class="jxr_linenumber" name="L446" href="#L446">446</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L447" href="#L447">447</a>     <strong class="jxr_keyword">private</strong> String getMessageBody(WiserMessage wiserMessage)
+<a class="jxr_linenumber" name="L447" href="#L447">447</a>     <strong class="jxr_keyword">private</strong> String getMessageBody(<strong class="jxr_keyword">final</strong> WiserMessage wiserMessage)
 <a class="jxr_linenumber" name="L448" href="#L448">448</a>             <strong class="jxr_keyword">throws</strong> IOException
 <a class="jxr_linenumber" name="L449" href="#L449">449</a>     {
 <a class="jxr_linenumber" name="L450" href="#L450">450</a>         <strong class="jxr_keyword">if</strong> (wiserMessage == <strong class="jxr_keyword">null</strong>)
@@ -464,20 +464,20 @@
 <a class="jxr_linenumber" name="L456" href="#L456">456</a> 
 <a class="jxr_linenumber" name="L457" href="#L457">457</a>         <strong class="jxr_keyword">try</strong>
 <a class="jxr_linenumber" name="L458" href="#L458">458</a>         {
-<a class="jxr_linenumber" name="L459" href="#L459">459</a>             MimeMessage message = wiserMessage.getMimeMessage();
+<a class="jxr_linenumber" name="L459" href="#L459">459</a>             <strong class="jxr_keyword">final</strong> MimeMessage message = wiserMessage.getMimeMessage();
 <a class="jxr_linenumber" name="L460" href="#L460">460</a>             messageBody = getMessageBodyBytes(message);
 <a class="jxr_linenumber" name="L461" href="#L461">461</a>         }
-<a class="jxr_linenumber" name="L462" href="#L462">462</a>         <strong class="jxr_keyword">catch</strong> (MessagingException me)
+<a class="jxr_linenumber" name="L462" href="#L462">462</a>         <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> MessagingException me)
 <a class="jxr_linenumber" name="L463" href="#L463">463</a>         {
 <a class="jxr_linenumber" name="L464" href="#L464">464</a>             <em class="jxr_comment">// Thrown while getting the body content from</em>
 <a class="jxr_linenumber" name="L465" href="#L465">465</a>             <em class="jxr_comment">// {@link MimeMessage#getDataHandler()}</em>
-<a class="jxr_linenumber" name="L466" href="#L466">466</a>             IllegalStateException ise =
+<a class="jxr_linenumber" name="L466" href="#L466">466</a>             <strong class="jxr_keyword">final</strong> IllegalStateException ise =
 <a class="jxr_linenumber" name="L467" href="#L467">467</a>                 <strong class="jxr_keyword">new</strong> IllegalStateException(<span class="jxr_string">"couldn't process MimeMessage from WiserMessage in getMessageBody()"</span>);
 <a class="jxr_linenumber" name="L468" href="#L468">468</a>             ise.initCause(me);
 <a class="jxr_linenumber" name="L469" href="#L469">469</a>             <strong class="jxr_keyword">throw</strong> ise;
 <a class="jxr_linenumber" name="L470" href="#L470">470</a>         }
 <a class="jxr_linenumber" name="L471" href="#L471">471</a> 
-<a class="jxr_linenumber" name="L472" href="#L472">472</a>         <strong class="jxr_keyword">return</strong> (messageBody != <strong class="jxr_keyword">null</strong>) ? (<strong class="jxr_keyword">new</strong> String(messageBody).intern()) : <span class="jxr_string">""</span>;
+<a class="jxr_linenumber" name="L472" href="#L472">472</a>         <strong class="jxr_keyword">return</strong> messageBody != <strong class="jxr_keyword">null</strong> ? <strong class="jxr_keyword">new</strong> String(messageBody).intern() : <span class="jxr_string">""</span>;
 <a class="jxr_linenumber" name="L473" href="#L473">473</a>     }
 <a class="jxr_linenumber" name="L474" href="#L474">474</a> 
 <a class="jxr_linenumber" name="L475" href="#L475">475</a>     <em class="jxr_javadoccomment">/**</em>
@@ -494,12 +494,12 @@
 <a class="jxr_linenumber" name="L486" href="#L486">486</a> <em class="jxr_javadoccomment">     *             {@link MimeMessage#getDataHandler()}</em>
 <a class="jxr_linenumber" name="L487" href="#L487">487</a> <em class="jxr_javadoccomment">     * @since 1.1</em>
 <a class="jxr_linenumber" name="L488" href="#L488">488</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L489" href="#L489">489</a>     <strong class="jxr_keyword">private</strong> byte[] getMessageBodyBytes(MimeMessage mimeMessage)
+<a class="jxr_linenumber" name="L489" href="#L489">489</a>     <strong class="jxr_keyword">private</strong> byte[] getMessageBodyBytes(<strong class="jxr_keyword">final</strong> MimeMessage mimeMessage)
 <a class="jxr_linenumber" name="L490" href="#L490">490</a>             <strong class="jxr_keyword">throws</strong> IOException, MessagingException
 <a class="jxr_linenumber" name="L491" href="#L491">491</a>     {
-<a class="jxr_linenumber" name="L492" href="#L492">492</a>         DataHandler dataHandler = mimeMessage.getDataHandler();
-<a class="jxr_linenumber" name="L493" href="#L493">493</a>         ByteArrayOutputStream byteArrayOutStream = <strong class="jxr_keyword">new</strong> ByteArrayOutputStream();
-<a class="jxr_linenumber" name="L494" href="#L494">494</a>         BufferedOutputStream buffOs = <strong class="jxr_keyword">new</strong> BufferedOutputStream(
+<a class="jxr_linenumber" name="L492" href="#L492">492</a>         <strong class="jxr_keyword">final</strong> DataHandler dataHandler = mimeMessage.getDataHandler();
+<a class="jxr_linenumber" name="L493" href="#L493">493</a>         <strong class="jxr_keyword">final</strong> ByteArrayOutputStream byteArrayOutStream = <strong class="jxr_keyword">new</strong> ByteArrayOutputStream();
+<a class="jxr_linenumber" name="L494" href="#L494">494</a>         <strong class="jxr_keyword">final</strong> BufferedOutputStream buffOs = <strong class="jxr_keyword">new</strong> BufferedOutputStream(
 <a class="jxr_linenumber" name="L495" href="#L495">495</a>                 byteArrayOutStream);
 <a class="jxr_linenumber" name="L496" href="#L496">496</a>         dataHandler.writeTo(buffOs);
 <a class="jxr_linenumber" name="L497" href="#L497">497</a>         buffOs.flush();
@@ -516,7 +516,7 @@
 <a class="jxr_linenumber" name="L508" href="#L508">508</a> <em class="jxr_javadoccomment">     * @return &lt;code&gt;true&lt;/code&gt; if the server claims to be running</em>
 <a class="jxr_linenumber" name="L509" href="#L509">509</a> <em class="jxr_javadoccomment">     * @since 1.1</em>
 <a class="jxr_linenumber" name="L510" href="#L510">510</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L511" href="#L511">511</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">boolean</strong> isMailServerStopped(Wiser fakeMailServer) {
+<a class="jxr_linenumber" name="L511" href="#L511">511</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">boolean</strong> isMailServerStopped(<strong class="jxr_keyword">final</strong> Wiser fakeMailServer) {
 <a class="jxr_linenumber" name="L512" href="#L512">512</a>         <strong class="jxr_keyword">return</strong> !fakeMailServer.getServer().isRunning();
 <a class="jxr_linenumber" name="L513" href="#L513">513</a>     }
 <a class="jxr_linenumber" name="L514" href="#L514">514</a>     
@@ -530,7 +530,7 @@
 <a class="jxr_linenumber" name="L522" href="#L522">522</a> <em class="jxr_javadoccomment">     * @return an invalid URL</em>
 <a class="jxr_linenumber" name="L523" href="#L523">523</a> <em class="jxr_javadoccomment">     */</em>
 <a class="jxr_linenumber" name="L524" href="#L524">524</a>     <strong class="jxr_keyword">protected</strong> URL createInvalidURL() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="L525" href="#L525">525</a>         URL url = createMock(URL.<strong class="jxr_keyword">class</strong>);
+<a class="jxr_linenumber" name="L525" href="#L525">525</a>         <strong class="jxr_keyword">final</strong> URL url = createMock(URL.<strong class="jxr_keyword">class</strong>);
 <a class="jxr_linenumber" name="L526" href="#L526">526</a>         expect(url.openStream()).andThrow(<strong class="jxr_keyword">new</strong> IOException());
 <a class="jxr_linenumber" name="L527" href="#L527">527</a>         replay(url);
 <a class="jxr_linenumber" name="L528" href="#L528">528</a>         

Modified: websites/production/commons/content/proper/commons-email/xref-test/org/apache/commons/mail/DefaultAuthenticatorTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/xref-test/org/apache/commons/mail/DefaultAuthenticatorTest.html (original)
+++ websites/production/commons/content/proper/commons-email/xref-test/org/apache/commons/mail/DefaultAuthenticatorTest.html Wed Jul  9 20:46:21 2014
@@ -34,7 +34,7 @@
 <a class="jxr_linenumber" name="L26" href="#L26">26</a>  <em class="jxr_javadoccomment"> * JUnit test case for DefaultAuthenticator Class.</em>
 <a class="jxr_linenumber" name="L27" href="#L27">27</a>  <em class="jxr_javadoccomment"> *</em>
 <a class="jxr_linenumber" name="L28" href="#L28">28</a>  <em class="jxr_javadoccomment"> * @since 1.0</em>
-<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <em class="jxr_javadoccomment"> * @version $Id: DefaultAuthenticatorTest.java 1510625 2013-08-05 17:49:04Z britter $</em>
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <em class="jxr_javadoccomment"> * @version $Id: DefaultAuthenticatorTest.java 1606709 2014-06-30 12:26:06Z ggregory $</em>
 <a class="jxr_linenumber" name="L30" href="#L30">30</a>  <em class="jxr_javadoccomment"> */</em>
 <a class="jxr_linenumber" name="L31" href="#L31">31</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/mail/DefaultAuthenticatorTest.html">DefaultAuthenticatorTest</a>
 <a class="jxr_linenumber" name="L32" href="#L32">32</a>  {
@@ -42,9 +42,9 @@
 <a class="jxr_linenumber" name="L34" href="#L34">34</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testDefaultAuthenticatorConstructor()
 <a class="jxr_linenumber" name="L35" href="#L35">35</a>      {
 <a class="jxr_linenumber" name="L36" href="#L36">36</a>          <em class="jxr_comment">//insert code testing basic functionality</em>
-<a class="jxr_linenumber" name="L37" href="#L37">37</a>          String strUsername = <span class="jxr_string">"user.name"</span>;
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>          String strPassword = <span class="jxr_string">"user.pwd"</span>;
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>          DefaultAuthenticator authenticator = <strong class="jxr_keyword">new</strong> DefaultAuthenticator(strUsername, strPassword);
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>          <strong class="jxr_keyword">final</strong> String strUsername = <span class="jxr_string">"user.name"</span>;
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>          <strong class="jxr_keyword">final</strong> String strPassword = <span class="jxr_string">"user.pwd"</span>;
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>          <strong class="jxr_keyword">final</strong> DefaultAuthenticator authenticator = <strong class="jxr_keyword">new</strong> DefaultAuthenticator(strUsername, strPassword);
 <a class="jxr_linenumber" name="L40" href="#L40">40</a>  
 <a class="jxr_linenumber" name="L41" href="#L41">41</a>          assertTrue(
 <a class="jxr_linenumber" name="L42" href="#L42">42</a>              PasswordAuthentication.<strong class="jxr_keyword">class</strong>.isInstance(

Modified: websites/production/commons/content/proper/commons-email/xref-test/org/apache/commons/mail/EmailAttachmentTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-email/xref-test/org/apache/commons/mail/EmailAttachmentTest.html (original)
+++ websites/production/commons/content/proper/commons-email/xref-test/org/apache/commons/mail/EmailAttachmentTest.html Wed Jul  9 20:46:21 2014
@@ -35,7 +35,7 @@
 <a class="jxr_linenumber" name="L27" href="#L27">27</a>  <em class="jxr_javadoccomment"> * JUnit test case for EmailAttachment Class.</em>
 <a class="jxr_linenumber" name="L28" href="#L28">28</a>  <em class="jxr_javadoccomment"> *</em>
 <a class="jxr_linenumber" name="L29" href="#L29">29</a>  <em class="jxr_javadoccomment"> * @since 1.0</em>
-<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <em class="jxr_javadoccomment"> * @version $Id: EmailAttachmentTest.java 1523306 2013-09-14 19:54:01Z tn $</em>
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <em class="jxr_javadoccomment"> * @version $Id: EmailAttachmentTest.java 1606709 2014-06-30 12:26:06Z ggregory $</em>
 <a class="jxr_linenumber" name="L31" href="#L31">31</a>  <em class="jxr_javadoccomment"> */</em>
 <a class="jxr_linenumber" name="L32" href="#L32">32</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/mail/EmailAttachmentTest.html">EmailAttachmentTest</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../org/apache/commons/mail/AbstractEmailTest.html">AbstractEmailTest</a>
 <a class="jxr_linenumber" name="L33" href="#L33">33</a>  {
@@ -50,7 +50,7 @@
 <a class="jxr_linenumber" name="L42" href="#L42">42</a>      @Test
 <a class="jxr_linenumber" name="L43" href="#L43">43</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetSetDescription()
 <a class="jxr_linenumber" name="L44" href="#L44">44</a>      {
-<a class="jxr_linenumber" name="L45" href="#L45">45</a>          <strong class="jxr_keyword">for</strong> (String validChar : testCharsValid)
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> String validChar : testCharsValid)
 <a class="jxr_linenumber" name="L46" href="#L46">46</a>          {
 <a class="jxr_linenumber" name="L47" href="#L47">47</a>              attachment.setDescription(validChar);
 <a class="jxr_linenumber" name="L48" href="#L48">48</a>              assertEquals(validChar, attachment.getDescription());
@@ -60,7 +60,7 @@
 <a class="jxr_linenumber" name="L52" href="#L52">52</a>      @Test
 <a class="jxr_linenumber" name="L53" href="#L53">53</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetSetName()
 <a class="jxr_linenumber" name="L54" href="#L54">54</a>      {
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>          <strong class="jxr_keyword">for</strong> (String validChar : testCharsValid)
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> String validChar : testCharsValid)
 <a class="jxr_linenumber" name="L56" href="#L56">56</a>          {
 <a class="jxr_linenumber" name="L57" href="#L57">57</a>              attachment.setName(validChar);
 <a class="jxr_linenumber" name="L58" href="#L58">58</a>              assertEquals(validChar, attachment.getName());
@@ -70,7 +70,7 @@
 <a class="jxr_linenumber" name="L62" href="#L62">62</a>      @Test
 <a class="jxr_linenumber" name="L63" href="#L63">63</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetSetPath()
 <a class="jxr_linenumber" name="L64" href="#L64">64</a>      {
-<a class="jxr_linenumber" name="L65" href="#L65">65</a>          <strong class="jxr_keyword">for</strong> (String validChar : testCharsValid)
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> String validChar : testCharsValid)
 <a class="jxr_linenumber" name="L66" href="#L66">66</a>          {
 <a class="jxr_linenumber" name="L67" href="#L67">67</a>              attachment.setPath(validChar);
 <a class="jxr_linenumber" name="L68" href="#L68">68</a>              assertEquals(validChar, attachment.getPath());
@@ -80,15 +80,15 @@
 <a class="jxr_linenumber" name="L72" href="#L72">72</a>      @Test
 <a class="jxr_linenumber" name="L73" href="#L73">73</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetSetURL() <strong class="jxr_keyword">throws</strong> Exception
 <a class="jxr_linenumber" name="L74" href="#L74">74</a>      {
-<a class="jxr_linenumber" name="L75" href="#L75">75</a>          String[] tests =
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>          <strong class="jxr_keyword">final</strong> String[] tests =
 <a class="jxr_linenumber" name="L76" href="#L76">76</a>              {
 <a class="jxr_linenumber" name="L77" href="#L77">77</a>                  <span class="jxr_string">"http://localhost/"</span>,
 <a class="jxr_linenumber" name="L78" href="#L78">78</a>                  <span class="jxr_string">"http://www.apache.org/"</span>,
 <a class="jxr_linenumber" name="L79" href="#L79">79</a>                  <span class="jxr_string">"http://foo.notexisting.org"</span> };
 <a class="jxr_linenumber" name="L80" href="#L80">80</a>  
-<a class="jxr_linenumber" name="L81" href="#L81">81</a>          <strong class="jxr_keyword">for</strong> (String urlString : tests)
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> String urlString : tests)
 <a class="jxr_linenumber" name="L82" href="#L82">82</a>          {
-<a class="jxr_linenumber" name="L83" href="#L83">83</a>              URL testURL = <strong class="jxr_keyword">new</strong> URL(urlString);
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>              <strong class="jxr_keyword">final</strong> URL testURL = <strong class="jxr_keyword">new</strong> URL(urlString);
 <a class="jxr_linenumber" name="L84" href="#L84">84</a>              attachment.setURL(testURL);
 <a class="jxr_linenumber" name="L85" href="#L85">85</a>              assertEquals(testURL, attachment.getURL());
 <a class="jxr_linenumber" name="L86" href="#L86">86</a>          }
@@ -97,7 +97,7 @@
 <a class="jxr_linenumber" name="L89" href="#L89">89</a>      @Test
 <a class="jxr_linenumber" name="L90" href="#L90">90</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testGetSetDisposition()
 <a class="jxr_linenumber" name="L91" href="#L91">91</a>      {
-<a class="jxr_linenumber" name="L92" href="#L92">92</a>          <strong class="jxr_keyword">for</strong> (String validChar : testCharsValid)
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> String validChar : testCharsValid)
 <a class="jxr_linenumber" name="L93" href="#L93">93</a>          {
 <a class="jxr_linenumber" name="L94" href="#L94">94</a>              attachment.setDisposition(validChar);
 <a class="jxr_linenumber" name="L95" href="#L95">95</a>              assertEquals(validChar, attachment.getDisposition());



Mime
View raw message