james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/james/transport/mailets AbstractRedirect.java
Date Fri, 20 Jun 2003 16:49:28 GMT
noel        2003/06/20 09:49:28

  Modified:    src/java/org/apache/james/transport/mailets
                        AbstractRedirect.java
  Log:
  Commented subtle code nuance
  
  Revision  Changes    Path
  1.11      +7 -1      jakarta-james/src/java/org/apache/james/transport/mailets/AbstractRedirect.java
  
  Index: AbstractRedirect.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/transport/mailets/AbstractRedirect.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- AbstractRedirect.java	19 Jun 2003 16:29:08 -0000	1.10
  +++ AbstractRedirect.java	20 Jun 2003 16:49:27 -0000	1.11
  @@ -520,6 +520,9 @@
                       }
                   }
                   if (mailAddress == null) {
  +                    /* IMPORTANT: setTo() treats null differently from
  +                     * an zero length array, so do not just use null
  +                     */
                       // set to <>
                       apparentlyTo = new InternetAddress[0];
                   } else {
  @@ -538,6 +541,9 @@
                       mailAddress = originalMail.getSender();
                   }
                   if (mailAddress == null) {
  +                    /* IMPORTANT: setTo() treats null differently from
  +                     * an zero length array, so do not just use null
  +                     */
                       // set to <>
                       apparentlyTo = new InternetAddress[0];
                   } else {
  
  
  

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


Mime
View raw message