Skip to content

Commit 98cb55e

Browse files
committed
Review fixes
Signed-off-by: Jorge Bescos Gascon <[email protected]>
1 parent 5387aee commit 98cb55e

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

api/src/main/java/jakarta/mail/internet/MimeBodyPart.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ public MimeBodyPart(InternetHeaders headers, byte[] content)
225225
* @param session Session object for this message
226226
* @param is the message input stream
227227
* @exception MessagingException for failures
228+
*
229+
* @since JavaMail 2.1
228230
*/
229231
public MimeBodyPart(Session session, InputStream is) throws MessagingException {
230232
this(is);

api/src/test/java/jakarta/mail/internet/MimeBodyPartTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ public void sessionProperties() throws MessagingException, IOException {
5656
assertTrue(obp.allowutf8);
5757
assertTrue(obp.cacheMultipart);
5858
// Change the properties in opposite way
59-
prop.put("mail.mime.setdefaulttextcharset", Boolean.FALSE);
60-
prop.put("mail.mime.setcontenttypefilename", Boolean.FALSE);
61-
prop.put("mail.mime.encodefilename", Boolean.TRUE);
62-
prop.put("mail.mime.decodefilename", Boolean.TRUE);
63-
prop.put("mail.mime.ignoremultipartencoding", Boolean.FALSE);
64-
prop.put("mail.mime.allowutf8", Boolean.FALSE);
65-
prop.put("mail.mime.cachemultipart", Boolean.FALSE);
59+
prop.put("mail.mime.setdefaulttextcharset", Boolean.FALSE.toString());
60+
prop.put("mail.mime.setcontenttypefilename", Boolean.FALSE.toString());
61+
prop.put("mail.mime.encodefilename", Boolean.TRUE.toString());
62+
prop.put("mail.mime.decodefilename", Boolean.TRUE.toString());
63+
prop.put("mail.mime.ignoremultipartencoding", Boolean.FALSE.toString());
64+
prop.put("mail.mime.allowutf8", Boolean.FALSE.toString());
65+
prop.put("mail.mime.cachemultipart", Boolean.FALSE.toString());
6666

6767
session = Session.getInstance(prop);
6868
orig = new MimeMessage(session, input);

0 commit comments

Comments
 (0)