mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8269409: Post JEP 411 refactoring: core-libs with maximum covering > 10K
Reviewed-by: lancea, naoto
This commit is contained in:
parent
d0d26f5c55
commit
e9b2c058a4
21 changed files with 229 additions and 128 deletions
|
@ -202,7 +202,6 @@ import sun.util.logging.PlatformLogger;
|
|||
*
|
||||
* @since 1.8
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
public final class HijrahChronology extends AbstractChronology implements Serializable {
|
||||
|
||||
/**
|
||||
|
@ -291,8 +290,10 @@ public final class HijrahChronology extends AbstractChronology implements Serial
|
|||
AbstractChronology.registerChrono(INSTANCE, "islamic");
|
||||
|
||||
// custom config chronologies
|
||||
CONF_PATH = Path.of(AccessController.doPrivileged((PrivilegedAction<String>)
|
||||
() -> System.getProperty("java.home")), "conf", "chronology");
|
||||
@SuppressWarnings("removal")
|
||||
String javaHome = AccessController.doPrivileged((PrivilegedAction<String>)
|
||||
() -> System.getProperty("java.home"));
|
||||
CONF_PATH = Path.of(javaHome, "conf", "chronology");
|
||||
registerCustomChrono();
|
||||
}
|
||||
|
||||
|
@ -840,7 +841,7 @@ public final class HijrahChronology extends AbstractChronology implements Serial
|
|||
};
|
||||
FilePermission perm1 = new FilePermission("<<ALL FILES>>", "read");
|
||||
RuntimePermission perm2 = new RuntimePermission("accessSystemModules");
|
||||
try (InputStream is = AccessController.doPrivileged(getResourceAction, null, perm1, perm2)) {
|
||||
try (@SuppressWarnings("removal") InputStream is = AccessController.doPrivileged(getResourceAction, null, perm1, perm2)) {
|
||||
if (is == null) {
|
||||
throw new RuntimeException("Hijrah calendar resource not found: " + resourceName);
|
||||
}
|
||||
|
@ -1035,6 +1036,7 @@ public final class HijrahChronology extends AbstractChronology implements Serial
|
|||
* Look for Hijrah chronology variant properties files in
|
||||
* <JAVA_HOME>/conf/chronology directory. Then register its chronology, if any.
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
private static void registerCustomChrono() {
|
||||
AccessController.doPrivileged(
|
||||
(PrivilegedAction<Void>)() -> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue