]> granicus.if.org Git - icu/commitdiff
ICU-11057 Fixed a compile error with Java 5.
authorYoshito Umaoka <y.umaoka@gmail.com>
Tue, 12 Aug 2014 14:04:10 +0000 (14:04 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Tue, 12 Aug 2014 14:04:10 +0000 (14:04 +0000)
X-SVN-Rev: 36143

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

index db8b56e91ef89a34894a845bcbccafce2999b95a..777fd33d93eb97131aa6a0711b571a50faeeab87 100644 (file)
@@ -513,7 +513,7 @@ final class NFRule {
      */
     private static int indexOfAny(String ruleText, String[] strings) {
         int result = -1;
-        if (!ruleText.isEmpty()) {
+        if (ruleText.length() > 0) {
             int pos;
             for (String string : strings) {
                 pos = ruleText.indexOf(string);