This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-net.git
The following commit(s) were added to refs/heads/master by this push: new bf0a43c Revert; must currently be a String bf0a43c is described below commit bf0a43cd61647308eca63ff26ddc1f04a00373c5 Author: Sebb <s...@apache.org> AuthorDate: Mon Jun 22 23:59:34 2020 +0100 Revert; must currently be a String --- src/main/java/org/apache/commons/net/smtp/SMTP.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/net/smtp/SMTP.java b/src/main/java/org/apache/commons/net/smtp/SMTP.java index 9601bc9..c09dca4 100644 --- a/src/main/java/org/apache/commons/net/smtp/SMTP.java +++ b/src/main/java/org/apache/commons/net/smtp/SMTP.java @@ -22,8 +22,6 @@ import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; -import java.nio.charset.Charset; -import java.nio.charset.StandardCharsets; import java.util.ArrayList; import org.apache.commons.net.MalformedServerReplyException; @@ -91,7 +89,7 @@ public class SMTP extends SocketClient // We have to ensure that the protocol communication is in ASCII // but we use ISO-8859-1 just in case 8-bit characters cross // the wire. - private static final Charset __DEFAULT_ENCODING = StandardCharsets.ISO_8859_1; + private static final String __DEFAULT_ENCODING = "ISO-8859-1"; /** * The encoding to use (user-settable).