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/email EmailTask.java
Date Sat, 09 Feb 2002 01:05:36 GMT
sbailliez    02/02/08 17:05:36

  Modified:    src/main/org/apache/tools/ant/taskdefs/email EmailTask.java
  Log:
  Access static method via class and not the object
  
  Revision  Changes    Path
  1.7       +2 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java
  
  Index: EmailTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/email/EmailTask.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- EmailTask.java	7 Feb 2002 20:32:34 -0000	1.6
  +++ EmailTask.java	9 Feb 2002 01:05:36 -0000	1.7
  @@ -395,7 +395,7 @@
               {
                   try
                   {
  -                    mailer = (Mailer)getClass().forName( "org.apache.tools.ant.taskdefs.email.MimeMailer"
).newInstance();
  +                    mailer = (Mailer)Class.forName( "org.apache.tools.ant.taskdefs.email.MimeMailer"
).newInstance();
                       autoFound = true;
                       log( "Using MIME mail", Project.MSG_VERBOSE );
                   }
  @@ -410,7 +410,7 @@
               {
                   try
                   {
  -                    mailer = (Mailer)getClass().forName( "org.apache.tools.ant.taskdefs.email.UUMailer"
).newInstance();
  +                    mailer = (Mailer)Class.forName( "org.apache.tools.ant.taskdefs.email.UUMailer"
).newInstance();
                       autoFound = true;
                       log( "Using UU mail", Project.MSG_VERBOSE );
                   }
  
  
  

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