james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Maurer <nor...@apache.org>
Subject Re: svn commit: r1078736 - /james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/SMTPResponse.java
Date Mon, 07 Mar 2011 11:42:16 GMT
Good catch!

Bye,
Norman

2011/3/7 <felixk@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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message