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
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -243,7 +243,8 @@ final class JceSecurity {
|
|||
|
||||
static {
|
||||
try {
|
||||
NULL_URL = new URL("http://null.oracle.com/");
|
||||
@SuppressWarnings("deprecation")
|
||||
var _unused = NULL_URL = new URL("http://null.oracle.com/");
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
|
|
@ -91,6 +91,7 @@ final class ProviderVerifier {
|
|||
// If the protocol of jarURL isn't "jar", we should
|
||||
// construct a JAR URL so we can open a JarURLConnection
|
||||
// for verifying this provider.
|
||||
@SuppressWarnings("deprecation")
|
||||
final URL url = jarURL.getProtocol().equalsIgnoreCase("jar")?
|
||||
jarURL : new URL("jar:" + jarURL + "!/");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue