Author: sebb
Date: Fri Oct  1 02:42:55 2010
New Revision: 1003363

URL: http://svn.apache.org/viewvc?rev=1003363&view=rev
Log:
String.isEmpty() is Java 1.6+

Modified:
    
commons/proper/email/trunk/src/java/org/apache/commons/mail/ImageHtmlEmail.java

Modified: 
commons/proper/email/trunk/src/java/org/apache/commons/mail/ImageHtmlEmail.java
URL: 
http://svn.apache.org/viewvc/commons/proper/email/trunk/src/java/org/apache/commons/mail/ImageHtmlEmail.java?rev=1003363&r1=1003362&r2=1003363&view=diff
==============================================================================
--- 
commons/proper/email/trunk/src/java/org/apache/commons/mail/ImageHtmlEmail.java 
(original)
+++ 
commons/proper/email/trunk/src/java/org/apache/commons/mail/ImageHtmlEmail.java 
Fri Oct  1 02:42:55 2010
@@ -106,7 +106,7 @@ public class ImageHtmlEmail extends Html
             throws EmailException
     {
         // if there is no useful HTML then simply route it through to the 
super class
-        if (htmlMessage == null || htmlMessage.isEmpty())
+        if (htmlMessage == null || htmlMessage.length() == 0)
         {
             return super.setHtmlMsg(htmlMessage);
         }


Reply via email to