]> granicus.if.org Git - icu/commitdiff
ICU-9844 Load region data in getPreferredValues()
authorJohn Emmons <emmo@us.ibm.com>
Fri, 8 Feb 2013 15:04:27 +0000 (15:04 +0000)
committerJohn Emmons <emmo@us.ibm.com>
Fri, 8 Feb 2013 15:04:27 +0000 (15:04 +0000)
X-SVN-Rev: 33143

icu4j/main/classes/core/src/com/ibm/icu/util/Region.java

index d5b6ae361c6a2ada2926bce167d3c55b1b6906d4..a761782e2fffbd3a9826f8e796b101e816c76a13 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *******************************************************************************
- * Copyright (C) 2011-2012, International Business Machines Corporation        *
+ * Copyright (C) 2011-2013, International Business Machines Corporation        *
  * All Rights Reserved.                                                        *
  *******************************************************************************
  */
@@ -518,6 +518,9 @@ public class Region implements Comparable<Region> {
      * @provisional This API might change or be removed in a future release.
      */
     public List<Region> getPreferredValues() {
+
+        loadRegionData();
+
         if ( type == RegionType.DEPRECATED) {
             return Collections.unmodifiableList(preferredValues);
         } else {