RFR: 8344659: Some uses of GetPropertyAction were not removed from java.io and java.nio
Naoto Sato
naoto at openjdk.org
Wed Nov 20 23:37:16 UTC 2024
On Wed, 20 Nov 2024 22:36:12 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Remove some occurrences of `GetPropertyAction` overlooked in #22219 and #22132.
Changes in `java.io.Console` and `sun.nio.cs.GB18030` look good.
src/java.base/share/classes/sun/nio/fs/Util.java line 40:
> 38:
> 39: private static final Charset jnuEncoding = Charset.forName(
> 40: System.getProperty("sun.jnu.encoding"));
`StaticProperty.jnuEncoding()` can be used
-------------
PR Review: https://git.openjdk.org/jdk/pull/22285#pullrequestreview-2449920128
PR Review Comment: https://git.openjdk.org/jdk/pull/22285#discussion_r1851119973
More information about the core-libs-dev
mailing list