mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8287860: Revise usage of volatile in j.u.Locale
Reviewed-by: naoto
This commit is contained in:
parent
bde7a7ae03
commit
4fe0ca9ec3
2 changed files with 24 additions and 19 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2010, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2010, 2022, 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
|
||||
|
@ -97,7 +97,7 @@ public final class BaseLocale {
|
|||
private final String region;
|
||||
private final String variant;
|
||||
|
||||
private volatile int hash;
|
||||
private @Stable int hash;
|
||||
|
||||
/**
|
||||
* Boolean for the old ISO language code compatibility.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue