ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/net MimeMail.java
Date Tue, 08 Jan 2002 22:46:39 GMT
sbailliez    02/01/08 14:46:39

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/net
                        MimeMail.java
  Log:
  Fix bad coding style.
  then/else parts of if statement and loop body must always been enclosed
  in a block statement.
  
  Revision  Changes    Path
  1.3       +4 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/net/MimeMail.java
  
  Index: MimeMail.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/net/MimeMail.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MimeMail.java	28 Oct 2001 21:30:22 -0000	1.2
  +++ MimeMail.java	8 Jan 2002 22:46:39 -0000	1.3
  @@ -321,14 +321,16 @@
                                          String addrUserName,
                                          String addrList
                                        ) throws MessagingException, BuildException {
  -        if ((null == addrList) || (addrList.trim().length() <= 0))
  +        if ((null == addrList) || (addrList.trim().length() <= 0)) {
               return;
  +        }
   
           try {
               InternetAddress[] addrArray = InternetAddress.parse(addrList);
   
  -            if ((null == addrArray) || (0 == addrArray.length))
  +            if ((null == addrArray) || (0 == addrArray.length)) {
                   throw new BuildException("Empty " + addrUserName + " recipients list was
specified");
  +            }
   
               msg.setRecipients(recipType, addrArray);
           }
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message