You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by fe...@apache.org on 2011/03/07 11:42:18 UTC

svn commit: r1078736 - /james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/SMTPResponse.java

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


Re: svn commit: r1078736 - /james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/SMTPResponse.java

Posted by Norman Maurer <no...@apache.org>.
Good catch!

Bye,
Norman

2011/3/7 <fe...@apache.org>

> 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
>
>