Fix MimeMessage(InputStream in, boolean recurse)

No actual impact, because all existing calls were
with recurse = true.
This commit is contained in:
Joe Steele 2013-09-07 12:52:14 -04:00
parent b2013b6f5e
commit 1ff128890d
1 changed files with 4 additions and 1 deletions

View File

@ -62,10 +62,13 @@ public class MimeMessage extends Message {
/**
* Parse the given InputStream using Apache Mime4J to build a MimeMessage.
* Nested messages will not be recursively parsed.
*
* @param in
* @throws IOException
* @throws MessagingException
*
* @see #MimeMessage(InputStream in, boolean recurse)
*/
public MimeMessage(InputStream in) throws IOException, MessagingException {
parse(in);
@ -80,7 +83,7 @@ public class MimeMessage extends Message {
* @throws MessagingException
*/
public MimeMessage(InputStream in, boolean recurse) throws IOException, MessagingException {
parse(in, true);
parse(in, recurse);
}
protected void parse(InputStream in) throws IOException, MessagingException {