RFR: 8299187: Ensure safe publication of name in ByteOrder [v2]

Jaikiran Pai jpai at openjdk.org
Mon Jan 2 09:07:05 UTC 2023


On Mon, 2 Jan 2023 08:17:17 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> This PR proposes to declare the field  `ByteOrder.name` `final`. 
>> 
>> This will ensure the class is thread safe and is using safe publication.
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update copyright year

src/java.base/share/classes/java/nio/ByteOrder.java line 2:

> 1: /*
> 2:  * Copyright (c) 2000, 2023 Oracle and/or its affiliates. All rights reserved.

Hello Per, a comma is required after `2023`.

-------------

PR: https://git.openjdk.org/jdk/pull/11752


More information about the nio-dev mailing list