jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1241314 - /jmeter/trunk/src/components/org/apache/jmeter/reporters/MailerModel.java
Date Tue, 07 Feb 2012 01:30:42 GMT
Author: sebb
Date: Tue Feb  7 01:30:41 2012
New Revision: 1241314

URL: http://svn.apache.org/viewvc?rev=1241314&view=rev
Log:
Remove unnecessary variable; tidy

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/reporters/MailerModel.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/reporters/MailerModel.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/reporters/MailerModel.java?rev=1241314&r1=1241313&r2=1241314&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/reporters/MailerModel.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/reporters/MailerModel.java Tue Feb  7 01:30:41
2012
@@ -336,9 +336,8 @@ public class MailerModel extends Abstrac
             final String password,
             MailAuthType mailAuthType)
             throws AddressException, MessagingException{
-        String host = smtpHost;
-        boolean debug = Boolean.valueOf(host).booleanValue();
-        // InetAddress remote = InetAddress.getByName(host);
+
+        boolean debug = Boolean.valueOf(smtpHost).booleanValue(); // TODO See Bug 52614
 
         InternetAddress[] address = new InternetAddress[vEmails.size()];
 
@@ -349,7 +348,7 @@ public class MailerModel extends Abstrac
         // create some properties and get the default Session
         Properties props = new Properties();
 
-        props.put(MAIL_SMTP_HOST, host);
+        props.put(MAIL_SMTP_HOST, smtpHost);
         props.put(MAIL_SMTP_PORT, Integer.toString(smtpPort)); // property values are strings
         Authenticator authenticator = null;
         if(mailAuthType != MailAuthType.NONE) {



Mime
View raw message