ICU-11057 Fixed a compile error with Java 5.

X-SVN-Rev: 36143
This commit is contained in:
Yoshito Umaoka 2014-08-12 14:04:10 +00:00
parent 41a76a46ba
commit 5cf61097e7

View 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);