]> granicus.if.org Git - icu/commitdiff
ICU-11760 Fixed a build error with Java 5 runtime.
authorYoshito Umaoka <y.umaoka@gmail.com>
Tue, 25 Aug 2015 19:37:01 +0000 (19:37 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Tue, 25 Aug 2015 19:37:01 +0000 (19:37 +0000)
X-SVN-Rev: 37813

icu4j/main/classes/core/src/com/ibm/icu/text/NFSubstitution.java

index e63aa7fd0a048298ac9d01c20f3376e5709436c0..bf5d1e8ce3794133607bf03664e0f0ee49f891cb 100644 (file)
@@ -175,7 +175,7 @@ abstract class NFSubstitution {
         // if the description was just two paired token characters
         // (i.e., "<<" or ">>"), it uses the rule set it belongs to to
         // format its result
-        if (description.isEmpty()) {
+        if (description.length() == 0) {
             this.ruleSet = ruleSet;
             this.numberFormat = null;
         }