Hi,

In the current API we have a number of methods that return null, and so the client has to do null checks before continuing. One example would be descriptor access methods in the Qi4j API class. Same with currentUnitOfWork().

I suggest that all of these are changed to throw IllegalArgumentException or IllegalStateException (according to what makes sense) instead, so that client code can rely on objects being returned correctly in the "normal case".

WDYT?

/Rickard

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to