mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 01:42:37 +00:00
ICU-8167 String.isEmpty() is new in Java 6, do not use it yet
X-SVN-Rev: 29283
This commit is contained in:
parent
f97ba58fe7
commit
9b0208f933
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue