You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2016/01/18 23:19:56 UTC

svn commit: r1725360 - /commons/proper/email/trunk/src/main/java/org/apache/commons/mail/util/MimeMessageParser.java

Author: ggregory
Date: Mon Jan 18 22:19:56 2016
New Revision: 1725360

URL: http://svn.apache.org/viewvc?rev=1725360&view=rev
Log:
The static field Part.ATTACHMENT should be accessed directly.

Modified:
    commons/proper/email/trunk/src/main/java/org/apache/commons/mail/util/MimeMessageParser.java

Modified: commons/proper/email/trunk/src/main/java/org/apache/commons/mail/util/MimeMessageParser.java
URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/src/main/java/org/apache/commons/mail/util/MimeMessageParser.java?rev=1725360&r1=1725359&r2=1725360&view=diff
==============================================================================
--- commons/proper/email/trunk/src/main/java/org/apache/commons/mail/util/MimeMessageParser.java (original)
+++ commons/proper/email/trunk/src/main/java/org/apache/commons/mail/util/MimeMessageParser.java Mon Jan 18 22:19:56 2016
@@ -176,14 +176,14 @@ public class MimeMessageParser
         throws MessagingException, IOException
     {
         if (isMimeType(part, "text/plain") && plainContent == null
-                && !MimePart.ATTACHMENT.equalsIgnoreCase(part.getDisposition()))
+                && !Part.ATTACHMENT.equalsIgnoreCase(part.getDisposition()))
         {
             plainContent = (String) part.getContent();
         }
         else
         {
             if (isMimeType(part, "text/html") && htmlContent == null
-                    && !MimePart.ATTACHMENT.equalsIgnoreCase(part.getDisposition()))
+                    && !Part.ATTACHMENT.equalsIgnoreCase(part.getDisposition()))
             {
                 htmlContent = (String) part.getContent();
             }