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
|
@ -72,7 +72,6 @@ import jdk.internal.icu.text.UCharacterIterator;
|
|||
* @since 1.6
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
public final class IDN {
|
||||
/**
|
||||
* Flag to allow processing of unassigned code points
|
||||
|
@ -224,19 +223,15 @@ public final class IDN {
|
|||
private static StringPrep namePrep = null;
|
||||
|
||||
static {
|
||||
InputStream stream = null;
|
||||
|
||||
try {
|
||||
final String IDN_PROFILE = "/sun/net/idn/uidna.spp";
|
||||
if (System.getSecurityManager() != null) {
|
||||
stream = AccessController.doPrivileged(new PrivilegedAction<>() {
|
||||
public InputStream run() {
|
||||
return StringPrep.class.getResourceAsStream(IDN_PROFILE);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
stream = StringPrep.class.getResourceAsStream(IDN_PROFILE);
|
||||
}
|
||||
@SuppressWarnings("removal")
|
||||
InputStream stream = System.getSecurityManager() != null
|
||||
? AccessController.doPrivileged(new PrivilegedAction<>() {
|
||||
public InputStream run() {
|
||||
return StringPrep.class.getResourceAsStream(IDN_PROFILE);
|
||||
}})
|
||||
: StringPrep.class.getResourceAsStream(IDN_PROFILE);
|
||||
|
||||
namePrep = new StringPrep(stream);
|
||||
stream.close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue