Use "String.length() == 0" instead of String.isEmpty() [API 9+]
This commit is contained in:
parent
188a9fd070
commit
91ee21bb2d
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue