Skip to content

Commit

Permalink
Resolve warning: [deprecation] URL(String) in URL has been deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdvm committed Feb 1, 2024
1 parent 948feac commit 2cdb94e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TLSTester.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private byte[] fetchBytes(String resource) throws IOException {
}

private InputStream fetchData(String resource) throws IOException {
URL url = new URL("http://" + serverHost + ":" + serverPort + resource);
URL url = new java.net.URI("http://" + serverHost + ":" + serverPort + resource).toURL;
URLConnection conn = url.openConnection();
conn.connect();
return conn.getInputStream();
Expand Down

0 comments on commit 2cdb94e

Please sign in to comment.