Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
naotoj committed Nov 15, 2024
1 parent ec148c1 commit ebd0523
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/jdk.charsets/share/classes/sun/nio/cs/ext/SJIS_0213.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2008, 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
Expand Down Expand Up @@ -31,11 +31,7 @@
import java.nio.charset.CharsetEncoder;
import java.nio.charset.CharsetDecoder;
import java.nio.charset.CoderResult;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import sun.nio.cs.CharsetMapping;
import sun.nio.cs.*;

/*
* 5 types of entry in SJIS_X_0213/Unicode mapping table
Expand Down Expand Up @@ -77,13 +73,8 @@ public CharsetEncoder newEncoder() {
}

private static class Holder {
@SuppressWarnings("removal")
static final CharsetMapping mapping = AccessController.doPrivileged(
new PrivilegedAction<CharsetMapping>() {
public CharsetMapping run() {
return CharsetMapping.get(SJIS_0213.class.getResourceAsStream("sjis0213.dat"));
}
});
static final CharsetMapping mapping =
CharsetMapping.get(SJIS_0213.class.getResourceAsStream("sjis0213.dat"));
}

protected static class Decoder extends CharsetDecoder {
Expand Down

0 comments on commit ebd0523

Please sign in to comment.