Print this page
rev 5994 : imported patch 8001205

Split Close
Expand all
Collapse all
          --- old/src/share/classes/sun/util/locale/provider/FallbackLocaleProviderAdapter.java
          +++ new/src/share/classes/sun/util/locale/provider/FallbackLocaleProviderAdapter.java
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   * 2 along with this work; if not, write to the Free Software Foundation,
  19   19   * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20   20   *
  21   21   * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22   22   * or visit www.oracle.com if you need additional information or have any
  23   23   * questions.
  24   24   */
  25   25  
  26   26  package sun.util.locale.provider;
  27   27  
       28 +import java.util.HashSet;
       29 +import java.util.Locale;
       30 +import java.util.Set;
       31 +
  28   32  /**
  29   33   * FallbackProviderAdapter implementation.
  30   34   *
  31   35   * @author Naoto Sato
  32   36   */
  33   37  public class FallbackLocaleProviderAdapter extends JRELocaleProviderAdapter {
  34   38  
  35   39      /**
  36   40       * Returns the type of this LocaleProviderAdapter
  37   41       */
  38   42      @Override
  39   43      public LocaleProviderAdapter.Type getAdapterType() {
  40   44          return Type.FALLBACK;
  41   45      }
       46 +
       47 +    @Override
       48 +    public Locale[] getAvailableLocales() {
       49 +        Locale[] ret = {Locale.ROOT};
       50 +        return ret;
       51 +    }
       52 +
       53 +    @Override
       54 +    public Set<String> getLanguageTagSet(String category) {
       55 +        return new HashSet<String>();
       56 +    }
  42   57  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX