Author: henning Date: Wed Aug 31 01:13:46 2005 New Revision: 264969 URL: http://svn.apache.org/viewcvs?rev=264969&view=rev Log: Remove double test on isEmpty(charset)
Modified: jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/MultiPartEmail.java Modified: jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/MultiPartEmail.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/MultiPartEmail.java?rev=264969&r1=264968&r2=264969&view=diff ============================================================================== --- jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/MultiPartEmail.java (original) +++ jakarta/commons/proper/email/trunk/src/java/org/apache/commons/mail/MultiPartEmail.java Wed Aug 31 01:13:46 2005 @@ -198,20 +198,15 @@ } try { - if (StringUtils.isNotEmpty(charset)) - { - BodyPart primary = getPrimaryBodyPart(); + BodyPart primary = getPrimaryBodyPart(); - if ((primary instanceof MimePart) && StringUtils.isNotEmpty(charset)) { - ((MimePart) primary).setText(msg, charset); - } else { - primary.setText(msg); - } + if ((primary instanceof MimePart) && StringUtils.isNotEmpty(charset)) + { + ((MimePart) primary).setText(msg, charset); } else { - getPrimaryBodyPart().setText(msg); - } + primary.setText(msg); } catch (MessagingException me) { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]