8287860: Revise usage of volatile in j.u.Locale

Reviewed-by: naoto
This commit is contained in:
Sergey Tsypanov 2022-06-07 11:46:06 +00:00 committed by Naoto Sato
parent bde7a7ae03
commit 4fe0ca9ec3
2 changed files with 24 additions and 19 deletions

View file

@ -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.