Print this page
rev 5696 : 6336885: RFE: Locale Data Deployment Enhancements
4609153: Provide locale data for Indic locales
5104387: Support for gl_ES locale (galician language)
6337471: desktop/system locale preferences support
7056139: (cal) SPI support for locale-dependent Calendar parameters
7058206: Provide CalendarData SPI for week params and display field value names
7073852: Support multiple scripts for digits and decimal symbols per locale
7079560: [Fmt-Da] Context dependent month names support in SimpleDateFormat
7171324: getAvailableLocales() of locale sensitive services should return the actual availability of locales
7151414: (cal) Support calendar type identification
7168528: LocaleServiceProvider needs to be aware of Locale extensions
7171372: (cal) locale's default Calendar should be created if unknown calendar is specified
Summary: JEP 127: Improve Locale Data Packaging and Adopt Unicode CLDR Data (part 1 w/o packaging changes. by Naoto Sato and Masayoshi Okutsu)

Split Close
Expand all
Collapse all
          --- old/src/share/classes/sun/util/resources/TimeZoneNames_zh_HK.java
          +++ new/src/share/classes/sun/util/resources/zh/TimeZoneNames_zh_HK.java
   1    1  /*
   2      - * Copyright (c) 1998, 2007, Oracle and/or its affiliates. All rights reserved.
        2 + * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
   3    3   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4    4   *
   5    5   * This code is free software; you can redistribute it and/or modify it
   6    6   * under the terms of the GNU General Public License version 2 only, as
   7    7   * published by the Free Software Foundation.  Oracle designates this
   8    8   * particular file as subject to the "Classpath" exception as provided
   9    9   * by Oracle in the LICENSE file that accompanied this code.
  10   10   *
  11   11   * This code is distributed in the hope that it will be useful, but WITHOUT
  12   12   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
↓ open down ↓ 16 lines elided ↑ open up ↑
  29   29   *
  30   30   *   The original version of this source code and documentation is copyrighted
  31   31   * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These
  32   32   * materials are provided under terms of a License Agreement between Taligent
  33   33   * and Sun. This technology is protected by multiple US and International
  34   34   * patents. This notice and attribution to Taligent may not be removed.
  35   35   *   Taligent is a registered trademark of Taligent, Inc.
  36   36   *
  37   37   */
  38   38  
  39      -package sun.util.resources;
       39 +package sun.util.resources.zh;
  40   40  
  41   41  import java.util.Locale;
  42   42  import java.util.ResourceBundle;
       43 +import sun.util.locale.provider.LocaleProviderAdapter;
       44 +import sun.util.resources.TimeZoneNamesBundle;
  43   45  
  44   46  public final class TimeZoneNames_zh_HK extends TimeZoneNamesBundle {
  45   47  
  46   48      // reparent to zh_TW for traditional Chinese names
  47   49      public TimeZoneNames_zh_HK() {
  48      -        ResourceBundle bundle = LocaleData.getTimeZoneNames(Locale.TAIWAN);
       50 +        ResourceBundle bundle = LocaleProviderAdapter.forJRE().getLocaleData().getTimeZoneNames(Locale.TAIWAN);
  49   51          setParent(bundle);
  50   52      }
  51   53  
  52      -    protected final Object[][] getContents() {
       54 +    @Override
       55 +    protected Object[][] getContents() {
  53   56          return new Object[][] {};
  54   57      }
  55   58  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX