]> granicus.if.org Git - icu/commitdiff
ICU-10485 Fixed a build error on Java 5 in the previous change.
authorYoshito Umaoka <y.umaoka@gmail.com>
Mon, 14 Oct 2013 19:04:26 +0000 (19:04 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Mon, 14 Oct 2013 19:04:26 +0000 (19:04 +0000)
X-SVN-Rev: 34562

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

index c3927afe837843e67f6d53f76b4b94f0f86abd89..08b8c761f33049e308fe92e2130a0d56e18af3f6 100644 (file)
@@ -153,8 +153,8 @@ public class MeasureUnit implements Comparable<MeasureUnit>, Serializable {
                     String type = unitsRes.getKey();
                     int unitsSize = unitsRes.getSize();
                     for ( int index2 = 0; index2 < unitsSize; ++index2) {
-                        UResourceBundle unitNameRes = unitsRes.get(index2);
-                        if (unitNameRes.containsKey("other")) {
+                        ICUResourceBundle unitNameRes = (ICUResourceBundle)unitsRes.get(index2);
+                        if (unitNameRes.get("other") != null) {
                             addUnit(type, unitNameRes.getKey(), UNIT_FACTORY);
                         }
                     }