commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1510642 - /commons/proper/email/trunk/src/test/java/org/apache/commons/mail/ImageHtmlEmailTest.java
Date Mon, 05 Aug 2013 18:22:36 GMT
Author: britter
Date: Mon Aug  5 18:22:36 2013
New Revision: 1510642

URL: http://svn.apache.org/r1510642
Log:
Use enhanced for loop

Modified:
    commons/proper/email/trunk/src/test/java/org/apache/commons/mail/ImageHtmlEmailTest.java

Modified: commons/proper/email/trunk/src/test/java/org/apache/commons/mail/ImageHtmlEmailTest.java
URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/src/test/java/org/apache/commons/mail/ImageHtmlEmailTest.java?rev=1510642&r1=1510641&r2=1510642&view=diff
==============================================================================
--- commons/proper/email/trunk/src/test/java/org/apache/commons/mail/ImageHtmlEmailTest.java
(original)
+++ commons/proper/email/trunk/src/test/java/org/apache/commons/mail/ImageHtmlEmailTest.java
Mon Aug  5 18:22:36 2013
@@ -442,8 +442,7 @@ public class ImageHtmlEmailTest extends 
         StringBuilder html = new StringBuilder();
         try {
             List<String> lines = IOUtils.readLines(stream);
-            for (int i = 0; i < lines.size(); i++) {
-                String line = lines.get(i);
+            for (String line : lines) {
                 html.append(line).append("\n");
             }
         } finally {



Mime
View raw message