You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2021/03/08 18:24:30 UTC

[jmeter] branch master updated: Remove Exception declaration

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 <fe...@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 {