jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject [jmeter] branch master updated: Remove Exception declaration
Date Mon, 08 Mar 2021 18:24:30 GMT
This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new 5d44afa  Remove Exception declaration
5d44afa is described below

commit 5d44afaf1eb87abed2e9ee5365cda135650b66a3
Author: Felix Schumacher <felix.schumacher@internetallee.de>
AuthorDate: Mon Mar 8 19:22:38 2021 +0100

    Remove Exception declaration
    
    That Exception can't be thrown in that private method. Part of
    new code, that was introduced to encode the personal part of
    email addresses in SMTP Sampler
    
    Bugzilla Id: 65149
    Relates to #644 on github
---
 .../main/java/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/protocol/mail/src/main/java/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
b/src/protocol/mail/src/main/java/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
index a1fedc1..f648b48 100644
--- a/src/protocol/mail/src/main/java/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
+++ b/src/protocol/mail/src/main/java/org/apache/jmeter/protocol/smtp/sampler/SmtpSampler.java
@@ -379,7 +379,7 @@ public class SmtpSampler extends AbstractSampler {
         }
     }
 
-    private String encodeAddress(String address) throws AddressException {
+    private String encodeAddress(String address) {
         String trimmedAddress = address.trim();
         if (!StringUtils.isAsciiPrintable(trimmedAddress)) {
             try {


Mime
View raw message