Author: pmouawad
Date: Mon Jan 30 18:31:34 2017
New Revision: 1780960
URL: http://svn.apache.org/viewvc?rev=1780960&view=rev
Log:
Refactored and reformatted SmtpSampler
Part 1/2 of PR contributed by Graham Russell
comment #259
Modified:
jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java
Modified:
jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java
URL:
http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java?rev=1780960&r1=1780959&r2=1780960&view=diff
==============================================================================
---
jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java
(original)
+++
jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/smtp/sampler/protocol/SendMailCommand.java
Mon Jan 30 18:31:34 2017
@@ -278,13 +278,11 @@ public class SendMailCommand {
* Message previously prepared by prepareMessage()
* @throws MessagingException
* when problems sending the mail arise
- * @throws IOException
- * TODO can not see how
* @throws InterruptedException
* when interrupted while waiting for delivery in synchronous
- * modus
+ * mode
*/
- public void execute(Message message) throws MessagingException,
IOException, InterruptedException {
+ public void execute(Message message) throws MessagingException,
InterruptedException {
Transport tr = null;
try {
@@ -319,7 +317,6 @@ public class SendMailCommand {
}
logger.debug("message sent");
- return;
}
/**