1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

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