RFR: 8345286: Remove use of SecurityManager API from misc areas [v3]
Jaikiran Pai
jpai at openjdk.org
Mon Dec 2 14:05:59 UTC 2024
On Mon, 2 Dec 2024 13:06:05 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
>> Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Path.of() instead of Paths.get() in CgroupV2Subsystem.java
>
> src/java.base/linux/classes/jdk/internal/platform/cgroupv2/CgroupV2Subsystem.java line 332:
>
>> 330:
>> 331: private long sumTokensIOStat(Function<String, Long> mapFunc) {
>> 332: try (Stream<String> lines = Files.lines(Paths.get(unified.path(), "io.stat"))) {
>
> Suggestion:
>
> try (Stream<String> lines = Files.lines(Paths.of(unified.path(), "io.stat"))) {
Done.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22478#discussion_r1865903682
More information about the core-libs-dev
mailing list