diff --git a/icu4j/src/com/ibm/icu/text/Collator.java b/icu4j/src/com/ibm/icu/text/Collator.java index 82932a4f73..b16fe4d7b2 100644 --- a/icu4j/src/com/ibm/icu/text/Collator.java +++ b/icu4j/src/com/ibm/icu/text/Collator.java @@ -1075,25 +1075,24 @@ public abstract class Collator implements Comparator, Cloneable ICUResourceBundle irb = (ICUResourceBundle) r.get(resName); - if(irb.containsKey(resName) || irb.getULocale().getBaseName().equals("root")){ - e = irb.getKeys(); - while(e.hasMoreElements()){ - Object o; - if((o = e.nextElement()).equals("default")){ - try { - defStr = irb.getString("default"); - if(defStr!=null){ - set.add(defStr); - } - } catch (MissingResourceException t) { - // Ignore error and continue search. + e = irb.getKeys(); + while(e.hasMoreElements()){ + Object o; + if((o = e.nextElement()).equals("default")){ + try { + defStr = irb.getString("default"); + if(defStr!=null){ + set.add(defStr); } - }else{ - set.add(o); + } catch (MissingResourceException t) { + // Ignore error and continue search. } - //v.add(e.nextElement()); + }else{ + set.add(o); } + //v.add(e.nextElement()); } + r = (ICUResourceBundle) r.getParent(); } while ((r != null)); //return values