Browse Source

AppServer: Stop using deprecated SslContextFactory constructor

Use SslContextFactory.Client instead, as suggested in the deprecation
javadoc.

Change-Id: I746c953d3ad549c23d0e43eb4a18fc587e924f93
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
next
David Pursehouse 5 years ago
parent
commit
8e356fc45e
  1. 2
      org.eclipse.jgit.junit.http/src/org/eclipse/jgit/junit/http/AppServer.java

2
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) { 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="; String dName = "CN=,OU=,O=,ST=,L=,C=";

Loading…
Cancel
Save