mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8294241: Deprecate URL public constructors
Reviewed-by: joehw, prr, alanb, aefimov, michaelm
This commit is contained in:
parent
68209adfa7
commit
4338f527aa
82 changed files with 848 additions and 146 deletions
|
@ -155,7 +155,8 @@ public class KeyStoreUtil {
|
|||
try {
|
||||
URL url;
|
||||
try {
|
||||
url = new URL(arg);
|
||||
@SuppressWarnings("deprecation")
|
||||
var _unused = url = new URL(arg);
|
||||
} catch (java.net.MalformedURLException mue) {
|
||||
File f = new File(arg);
|
||||
if (f.exists()) {
|
||||
|
|
|
@ -99,7 +99,9 @@ public class PathList {
|
|||
name = name + "/";
|
||||
}
|
||||
try {
|
||||
return new URL("file", "", name);
|
||||
@SuppressWarnings("deprecation")
|
||||
var result = new URL("file", "", name);
|
||||
return result;
|
||||
} catch (MalformedURLException e) {
|
||||
throw new IllegalArgumentException("file");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue