<i18n dev> RFR: 8287860: Revise usage of volatile in j.u.Locale [v2]
    Сергей Цыпанов 
    duke at openjdk.java.net
       
    Mon Jun  6 20:37:18 UTC 2022
    
    
  
On Mon, 6 Jun 2022 17:31:15 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> Сергей Цыпанов has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8287860: Mark hash fields with @Stable
>
> src/java.base/share/classes/java/util/Locale.java line 1084:
> 
>> 1082:         Properties props = GetPropertyAction.privilegedGetProperties();
>> 1083: 
>> 1084:         Locale defaultLocale = Locale.defaultLocale;
> 
> I'd use a different local variable name so that it won't clash with the field name. The same holds for other locations (`isoLanguages` and `languageTag`)
Done!
-------------
PR: https://git.openjdk.java.net/jdk/pull/9041
    
    
More information about the i18n-dev
mailing list