Re: [android-developers] return object or list

Mon, 04 Aug 2014 21:27:07 -0700

On Mon, Aug 4, 2014 at 2:51 PM, sweety fx <[email protected]> wrote:

> My colleague mentioned list is the better way of doing it. So that we
> don't face null pointer exceptions. since we check for list.isEmpty()


You're replacing one if check for another and making your code confusing.
This is not better.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to