You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by on...@apache.org on 2017/01/05 10:41:24 UTC

svn commit: r1777444 - /poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java

Author: onealj
Date: Thu Jan  5 10:41:23 2017
New Revision: 1777444

URL: http://svn.apache.org/viewvc?rev=1777444&view=rev
Log:
bug 60331: remove deprecated constructor and method in scratchpad o.a.p.hsmf.MAPIMessage

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java?rev=1777444&r1=1777443&r2=1777444&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java Thu Jan  5 10:41:23 2017
@@ -123,13 +123,6 @@ public class MAPIMessage extends POIRead
       this(fs.getRoot());
    }
    /**
-    * @deprecated Use {@link #MAPIMessage(DirectoryNode)} instead
-    */
-   @Deprecated
-   public MAPIMessage(DirectoryNode poifsDir, POIFSFileSystem fs) throws IOException {
-      this(poifsDir);
-   }
-   /**
     * Constructor for reading MSG Files from a certain
     *  point within a POIFS filesystem
     * @param poifsDir Directory containing the message
@@ -206,10 +199,6 @@ public class MAPIMessage extends POIRead
       }
       return getStringFromChunk(mainChunks.getHtmlBodyChunkString());
    }
-   @Deprecated
-   public String getHmtlBody() throws ChunkNotFoundException {
-      return getHtmlBody();
-   }
 
    /**
     * Gets the RTF Rich Message body of this Outlook Message, if this email
@@ -426,7 +415,7 @@ public class MAPIMessage extends POIRead
       
       // Nothing suitable in the headers, try HTML
       try {
-         String html = getHmtlBody();
+         String html = getHtmlBody();
          if(html != null && html.length() > 0) {
             // Look for a content type in the meta headers
             Pattern p = Pattern.compile(



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org