emilsjolander / sprinkles

Sprinkles is a boiler-plate-reduction-library for dealing with databases in android applications
Apache License 2.0
772 stars 84 forks source link

Check class type early #36

Closed jdreesen closed 10 years ago

jdreesen commented 10 years ago

I think it's better to define the needed class type in the function's argument instead of doing an unchecked cast at later time, because the classes in the respondsToUpdatedOf array need to extend the Model class anyway.

emilsjolander commented 10 years ago

Yes ofc! I think this is an artefact of an early build that i had forgotten to change just ;) thank you :+1: