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 e171dd6 Unnecessary code e171dd6 is described below commit e171dd64e62c912ef349a9384c2ee7750a369fd4 Author: Sebb <s...@apache.org> AuthorDate: Tue Jul 27 00:15:50 2021 +0100 Unnecessary code --- .../java/org/apache/commons/net/ftp/FTPSClientTest.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java b/src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java index e224b96..05d55aa 100644 --- a/src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java +++ b/src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java @@ -77,17 +77,6 @@ public class FTPSClientTest { private static final boolean IMPLICIT = false; - private static String TlsProtocols; - - @AfterClass - public static void afterClass() { - if (TlsProtocols == null) { - System.getProperties().remove(JDK_TLS_CLIENT_PROTOCOLS); - } else { - System.setProperty(JDK_TLS_CLIENT_PROTOCOLS, TlsProtocols); - } - } - /** * Returns the test directory as a String. * @@ -99,8 +88,6 @@ public class FTPSClientTest { @BeforeClass public static void setUpClass() throws Exception { - TlsProtocols = System.getProperty(JDK_TLS_CLIENT_PROTOCOLS); - //System.setProperty(JDK_TLS_CLIENT_PROTOCOLS, "TLSv1"); setUpClass(IMPLICIT); } @@ -140,7 +127,6 @@ public class FTPSClientTest { Assert.assertTrue(keyStoreFile.toString(), keyStoreFile.exists()); sllConfigFactory.setKeystoreFile(keyStoreFile); sllConfigFactory.setKeystorePassword("password"); - sllConfigFactory.setSslProtocol("TLSv1.2"); // set the SSL configuration for the listener factory.setSslConfiguration(sllConfigFactory.createSslConfiguration());