From: David Pursehouse Date: Thu, 17 Oct 2019 01:42:28 +0000 (+0900) Subject: AppServer: Stop using deprecated SslContextFactory constructor X-Git-Tag: v5.6.0.201911271000-m3~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F05%2F151205%2F1;p=jgit.git AppServer: Stop using deprecated SslContextFactory constructor Use SslContextFactory.Client instead, as suggested in the deprecation javadoc. Change-Id: I746c953d3ad549c23d0e43eb4a18fc587e924f93 Signed-off-by: David Pursehouse --- diff --git a/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/AppServer.java b/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/AppServer.java index 14f54bef93..33cbd2b595 100644 --- a/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/AppServer.java +++ b/org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/AppServer.java @@ -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=";