Mercurial > hg > monetdb-java
changeset 858:d74e850e2991
Resolve warning: [deprecation] URL(String) in URL has been deprecated
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 01 Feb 2024 14:11:10 +0100 (14 months ago) |
parents | 8dc5047e9d04 |
children | 68994abe3e03 |
files | tests/TLSTester.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/TLSTester.java +++ b/tests/TLSTester.java @@ -128,7 +128,7 @@ public class TLSTester { } 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();