mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 09:52:16 -05:00
Use "String.length() == 0" instead of String.isEmpty() [API 9+]
This commit is contained in:
parent
188a9fd070
commit
91ee21bb2d
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user