commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1417131 - in /commons/proper/email/trunk/src/test/java/org/apache/commons/mail: HtmlEmailTest.java ImageHtmlEmailTest.java
Date Tue, 04 Dec 2012 19:24:41 GMT
Author: sebb
Date: Tue Dec  4 19:24:39 2012
New Revision: 1417131

URL: http://svn.apache.org/viewvc?rev=1417131&view=rev
Log:
Generic types

Modified:
    commons/proper/email/trunk/src/test/java/org/apache/commons/mail/HtmlEmailTest.java
    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/HtmlEmailTest.java
URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/src/test/java/org/apache/commons/mail/HtmlEmailTest.java?rev=1417131&r1=1417130&r2=1417131&view=diff
==============================================================================
--- commons/proper/email/trunk/src/test/java/org/apache/commons/mail/HtmlEmailTest.java (original)
+++ commons/proper/email/trunk/src/test/java/org/apache/commons/mail/HtmlEmailTest.java Tue
Dec  4 19:24:39 2012
@@ -670,7 +670,7 @@ public class HtmlEmailTest extends BaseE
         MimeMessageParser mmp = new MimeMessageParser(mm);
         mmp.parse();
 
-        List attachments = mmp.getAttachmentList();
+        List<?> attachments = mmp.getAttachmentList();
         assertEquals("Attachment size", 1, attachments.size());
 
         DataSource ds = (DataSource) attachments.get(0);

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=1417131&r1=1417130&r2=1417131&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
Tue Dec  4 19:24:39 2012
@@ -361,7 +361,7 @@ public class ImageHtmlEmailTest extends 
         InputStream stream = url.openStream();
         StringBuffer str = new StringBuffer();
         try {
-            List lines = IOUtils.readLines(stream);
+            List<?> lines = IOUtils.readLines(stream);
             for (int i = 0; i < lines.size(); i++) {
                 String line = (String) lines.get(i);
                 str.append(line).append("\n");



Mime
View raw message