ICU-8167 String.isEmpty() is new in Java 6, do not use it yet

X-SVN-Rev: 29283
This commit is contained in:
Markus Scherer 2011-01-11 00:26:05 +00:00
parent f97ba58fe7
commit 9b0208f933
2 changed files with 2 additions and 2 deletions

View file

@ -543,7 +543,7 @@ public class BytesTrieTest extends TestFmwk {
private void checkFirst(byte[] trieBytes, StringAndValue data[], int dataLength) {
BytesTrie trie=new BytesTrie(trieBytes, 0);
for(int i=0; i<dataLength; ++i) {
if(data[i].s.isEmpty()) {
if(data[i].s.length()==0) {
continue; // skip empty string
}
int c=data[i].s.charAt(0);

View file

@ -672,7 +672,7 @@ public class CharsTrieTest extends TestFmwk {
private void checkFirst(CharSequence trieChars, StringAndValue[] data, int dataLength) {
CharsTrie trie=new CharsTrie(trieChars, 0);
for(int i=0; i<dataLength; ++i) {
if(data[i].s.isEmpty()) {
if(data[i].s.length()==0) {
continue; // skip empty string
}
String expectedString=data[i].s;