Use "String.length() == 0" instead of String.isEmpty() [API 9+]

This commit is contained in:
cketti 2011-10-27 19:11:44 +02:00
parent 188a9fd070
commit 91ee21bb2d

View file

@ -131,7 +131,7 @@ public class Address {
* @return An array of 0 or more Addresses.
*/
public static Address[] parse(String addressList) {
if (addressList == null || addressList.isEmpty()) {
if (addressList == null || addressList.length() == 0) {
return EMPTY_ADDRESS_ARRAY;
}
List<Address> addresses = new ArrayList<Address>();