commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ramiro Pereira de Magalhaes <rpm_mail...@yahoo.com.br>
Subject [email][PATCH] Replace !StringUtils.isNotEmpty() with StringUtils.isEmpty()
Date Sat, 03 Sep 2005 19:57:59 GMT
Index: src/java/org/apache/commons/mail/Email.java
===================================================================
--- src/java/org/apache/commons/mail/Email.java    (revisão 267492)
+++ src/java/org/apache/commons/mail/Email.java    (cópia de trabalho)
@@ -407,7 +407,7 @@
         try
         {
             // check name input
-            if (!StringUtils.isNotEmpty(name))
+            if (StringUtils.isEmpty(name))
             {
                 name = email;
             }
@@ -683,11 +683,11 @@
      */
     public void addHeader(String name, String value)
     {
-        if (!StringUtils.isNotEmpty(name))
+        if (StringUtils.isEmpty(name))
         {
             throw new IllegalArgumentException("name can not be null");
         }
-        if (!StringUtils.isNotEmpty(value))
+        if (StringUtils.isEmpty(value))
         {
             throw new IllegalArgumentException("value can not be null");
         }


	

	
		
_______________________________________________________ 
Yahoo! Messenger com voz: PROMOÇÃO VOCÊ PODE LEVAR UMA VIAGEM NA CONVERSA. Participe! www.yahoo.com.br/messenger/promocao

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message