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
|
@ -110,14 +110,16 @@ public class PolicyUtil {
|
|||
if (storePassURL != null) {
|
||||
URL passURL;
|
||||
try {
|
||||
passURL = new URL(storePassURL);
|
||||
@SuppressWarnings("deprecation")
|
||||
var _unused = passURL = new URL(storePassURL);
|
||||
// absolute URL
|
||||
} catch (MalformedURLException e) {
|
||||
// relative URL
|
||||
if (policyUrl == null) {
|
||||
throw e;
|
||||
}
|
||||
passURL = new URL(policyUrl, storePassURL);
|
||||
@SuppressWarnings("deprecation")
|
||||
var _unused = passURL = new URL(policyUrl, storePassURL);
|
||||
}
|
||||
|
||||
if (debug != null) {
|
||||
|
@ -138,14 +140,16 @@ public class PolicyUtil {
|
|||
*/
|
||||
URL keyStoreUrl;
|
||||
try {
|
||||
keyStoreUrl = new URL(keyStoreName);
|
||||
@SuppressWarnings("deprecation")
|
||||
var _unused = keyStoreUrl = new URL(keyStoreName);
|
||||
// absolute URL
|
||||
} catch (MalformedURLException e) {
|
||||
// relative URL
|
||||
if (policyUrl == null) {
|
||||
throw e;
|
||||
}
|
||||
keyStoreUrl = new URL(policyUrl, keyStoreName);
|
||||
@SuppressWarnings("deprecation")
|
||||
var _unused = keyStoreUrl = new URL(policyUrl, keyStoreName);
|
||||
}
|
||||
|
||||
if (debug != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue