mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +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
|
@ -694,7 +694,9 @@ public class File
|
|||
if (isInvalid()) {
|
||||
throw new MalformedURLException("Invalid file path");
|
||||
}
|
||||
return new URL("file", "", slashify(getAbsolutePath(), isDirectory()));
|
||||
@SuppressWarnings("deprecation")
|
||||
var result = new URL("file", "", slashify(getAbsolutePath(), isDirectory()));
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue