URL deprecations

This commit is contained in:
Jindra Petřík
2025-04-25 21:49:56 +02:00
parent a25d171280
commit 8c2d31af2c
4 changed files with 10 additions and 6 deletions
@@ -57,6 +57,7 @@ import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import java.net.URLConnection;
import java.text.ParseException;
@@ -196,8 +197,8 @@ public class CheckResources {
try {
String resPath = "/src" + getResourcePath(clazz, null);
URLConnection uc;
URL latestUrl = new URL(rootUrl + (revision2 == null ? "master" : revision2) + resPath);
URL prevUrl = new URL(rootUrl + revision + resPath);
URL latestUrl = URI.create(rootUrl + (revision2 == null ? "master" : revision2) + resPath).toURL();
URL prevUrl = URI.create(rootUrl + revision + resPath).toURL();
Properties latestProp = new LinkedProperties();
try {