Closed GoogleCodeExporter closed 8 years ago
Original comment by passant....@gmail.com
on 9 Dec 2011 at 9:45
Original comment by passant....@gmail.com
on 12 Dec 2011 at 11:43
Done
1) ViewSearchResultsActivity: add if statement to check the list size is > 0 in
the filterOffers method before calling searchUsingFacebook
2) FacebookWebservice + ViewSearchResultsActivity : Add warning to the comments
of the methods doing the search that the minimum allowed size is 1 and that the
methods should not be called on empty lists
REASON: I did not add if statements in all methods checking if the list is
empty, then return because it is extra un necessary computations. If a list is
empty then it should not be passed to such methods in the first place. (Same
idea like implicit and explicit casting for compilers before the method or
inside the method). hence, I added a clear warning in the comments and just
stopped the calling of the method if the list is empty to save unnecesary
branching instructions
Original comment by passant....@gmail.com
on 13 Dec 2011 at 12:00
Original issue reported on code.google.com by
passant....@gmail.com
on 9 Dec 2011 at 9:07