src/share/classes/sun/util/locale/provider/FallbackLocaleProviderAdapter.java

Print this page
rev 5994 : imported patch 8001205

@@ -23,10 +23,14 @@
  * questions.
  */
 
 package sun.util.locale.provider;
 
+import java.util.HashSet;
+import java.util.Locale;
+import java.util.Set;
+
 /**
  * FallbackProviderAdapter implementation.
  *
  * @author Naoto Sato
  */

@@ -37,6 +41,17 @@
      */
     @Override
     public LocaleProviderAdapter.Type getAdapterType() {
         return Type.FALLBACK;
     }
+
+    @Override
+    public Locale[] getAvailableLocales() {
+        Locale[] ret = {Locale.ROOT};
+        return ret;
+    }
+
+    @Override
+    public Set<String> getLanguageTagSet(String category) {
+        return new HashSet<String>();
+    }
 }