]> source.dussan.org Git - jgit.git/commitdiff
AppServer: Stop using deprecated SslContextFactory constructor 05/151205/1
authorDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 17 Oct 2019 01:42:28 +0000 (10:42 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 17 Oct 2019 01:42:31 +0000 (10:42 +0900)
Use SslContextFactory.Client instead, as suggested in the deprecation
javadoc.

Change-Id: I746c953d3ad549c23d0e43eb4a18fc587e924f93
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/AppServer.java

index 14f54bef931b0a102d9ed7171ce57f308ac72cb4..33cbd2b59552a0fb20a41e8a8b94ff776a87b6dd 100644 (file)
@@ -205,7 +205,7 @@ public class AppServer {
        }
 
        private SslContextFactory createTestSslContextFactory(String hostName) {
-               SslContextFactory factory = new SslContextFactory(true);
+               SslContextFactory.Client factory = new SslContextFactory.Client(true);
 
                String dName = "CN=,OU=,O=,ST=,L=,C=";