mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8344419: Use StaticProperty in some JDK classes
Reviewed-by: alanb, rriggs
This commit is contained in:
parent
3e509c8bd1
commit
fc2da15bce
2 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2024, 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
|
||||
|
@ -47,6 +47,7 @@ import java.util.zip.ZipInputStream;
|
|||
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
|
||||
import jdk.internal.util.StaticProperty;
|
||||
import sun.security.ssl.SSLLogger;
|
||||
|
||||
/**
|
||||
|
@ -209,7 +210,7 @@ class DomainName {
|
|||
new PrivilegedAction<>() {
|
||||
@Override
|
||||
public InputStream run() {
|
||||
File f = new File(System.getProperty("java.home"),
|
||||
File f = new File(StaticProperty.javaHome(),
|
||||
"lib/security/public_suffix_list.dat");
|
||||
try {
|
||||
return new FileInputStream(f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue