james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r1078736 - /james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/SMTPResponse.java
Date Mon, 07 Mar 2011 10:42:18 GMT
Author: felixk
Date: Mon Mar  7 10:42:17 2011
New Revision: 1078736

URL: http://svn.apache.org/viewvc?rev=1078736&view=rev
Log:
Throw that Exception, not only create it.

Modified:
    james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/SMTPResponse.java

Modified: james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/SMTPResponse.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/SMTPResponse.java?rev=1078736&r1=1078735&r2=1078736&view=diff
==============================================================================
--- james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/SMTPResponse.java
(original)
+++ james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/SMTPResponse.java
Mon Mar  7 10:42:17 2011
@@ -43,7 +43,7 @@ public final class SMTPResponse implemen
      */
     public SMTPResponse(String code, CharSequence description) {
         if (code == null) throw new IllegalArgumentException("SMTPResponse code can not be
null");
-        if (description == null) new IllegalArgumentException("SMTPResponse description can
not be null");
+        if (description == null) throw new IllegalArgumentException("SMTPResponse description
can not be null");
     
         this.setRetCode(code);
         this.appendLine(description);



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


Mime
View raw message